/* The Oxley Group — base stylesheet shared across all pages.
   Palette: warm cream + sage green + soft terracotta.
   Trust + Southern warmth + family-business establishment.
   Mobile-first responsive. */

:root {
  --sage:           #3F5A3D;
  --sage-dark:      #2D4530;
  --sage-light:     #6B8868;
  --cream:          #FAF6F0;
  --cream-warm:     #F2EBDD;
  --terracotta:     #C67B5F;
  --terracotta-dark: #A85F44;
  --charcoal:       #2A2A2A;
  --charcoal-soft:  #4D4D4D;
  --muted:          #7A7268;
  --border:         #E5DFD3;
  --surface:        #FFFFFF;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-dark); text-decoration: none; transition: color 150ms; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.4em;
  font-weight: 700;
}
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4.2vw, 38px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p  { margin: 0 0 1em; color: var(--charcoal-soft); }
.subhead { font-size: 19px; color: var(--charcoal-soft); margin-top: -8px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sage); margin-bottom: 14px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.site-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.brand-mark {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--sage-dark);
  letter-spacing: -0.01em;
}
.brand-mark a { color: inherit; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--charcoal); font-weight: 500; font-size: 15px;
  position: relative; padding: 4px 0;
}
.nav-links a.active { color: var(--sage-dark); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--terracotta);
}
/* Specificity bump (.nav-links a.nav-search) so the white text beats
   the generic .nav-links a charcoal color. Without the chain selector
   the dark-on-dark button reads as broken. */
.nav-links a.nav-search {
  background: var(--sage); color: white;
  padding: 10px 18px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
  transition: background 150ms;
}
.nav-links a.nav-search:hover { background: var(--sage-dark); color: white; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--charcoal);
  margin: 5px 0; transition: transform 200ms, opacity 200ms;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .nav-toggle { display: block; }
  .nav-search { display: none; }
  .nav-links.open .nav-search { display: block; align-self: flex-start; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 15px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 180ms;
  text-align: center;
}
.btn-primary {
  background: var(--terracotta);
  color: white;
}
.btn-primary:hover { background: var(--terracotta-dark); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}
.btn-secondary:hover { background: var(--sage); color: white; }
.btn-link {
  color: var(--sage-dark); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link::after { content: '→'; transition: transform 150ms; }
.btn-link:hover::after { transform: translateX(4px); }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-cream { background: var(--cream-warm); }
.section-sage { background: var(--sage-dark); color: var(--cream); }
.section-sage h1, .section-sage h2, .section-sage h3 { color: var(--cream); }
.section-sage p { color: rgba(250,246,240,0.85); }
.section-sage .eyebrow { color: var(--terracotta); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 540px;
  background: var(--sage-dark);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(45,69,48,0.85) 0%, rgba(63,90,61,0.65) 100%),
    var(--hero-img, linear-gradient(135deg, var(--sage-dark), var(--sage)));
  background-size: cover; background-position: center 22%;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px; padding: 80px 24px;
  margin: 0 auto;
  color: var(--cream);
  text-align: center;
}
.hero h1 { color: var(--cream); margin-bottom: 18px; }
.hero p.lede {
  font-size: 19px; color: rgba(250,246,240,0.92);
  margin-bottom: 32px;
}
.hero .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-placeholder-note {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(0,0,0,0.5); color: var(--cream);
  padding: 6px 12px; border-radius: 4px;
  font-size: 11px; font-family: monospace;
}

/* --- Quick action tiles --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: left;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: transform 180ms, box-shadow 180ms, border-color 180ms;
  text-decoration: none;
  color: inherit;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(45,69,48,0.22);
  border-color: var(--sage-light);
}
.tile-icon {
  width: 44px; height: 44px;
  background: var(--cream-warm); color: var(--sage-dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 20px; margin: 0; }
.tile p { font-size: 14.5px; color: var(--charcoal-soft); margin: 0; }
.tile-cta { color: var(--sage-dark); font-weight: 600; margin-top: 4px; font-size: 14px; }
.tile-cta::after { content: ' →'; }
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
}

/* --- Services teaser --- */
.services-teaser {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 22px;
  transition: border-color 180ms;
}
.service-card:hover { border-color: var(--sage); }
.service-card h3 { font-size: 18px; margin: 0 0 8px; }
.service-card p { font-size: 14px; color: var(--charcoal-soft); margin: 0 0 14px; }
.service-card .btn-link { font-size: 13.5px; }
@media (max-width: 840px) { .services-teaser { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .services-teaser { grid-template-columns: 1fr; } }

/* --- Testimonials --- */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: var(--surface); border-left: 3px solid var(--terracotta);
  border-radius: 0 8px 8px 0;
  padding: 26px 28px;
}
.testimonial blockquote {
  margin: 0 0 14px; font-size: 16px; font-style: italic;
  color: var(--charcoal); line-height: 1.55;
}
.testimonial cite {
  font-size: 13.5px; color: var(--muted); font-style: normal;
  font-weight: 600; letter-spacing: 0.02em;
}
@media (max-width: 840px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* --- Area photo strip --- */
.area-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.area-photo {
  position: relative; aspect-ratio: 4/5;
  background: var(--cream-warm);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.area-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.area-photo span {
  position: relative; z-index: 2; color: var(--cream);
  padding: 18px 20px; font-weight: 700; font-size: 18px;
  font-family: 'Playfair Display', serif;
}
.area-photo[data-placeholder]::after {
  content: 'photo placeholder'; position: absolute;
  top: 12px; left: 12px; z-index: 2;
  background: rgba(0,0,0,0.55); color: var(--cream);
  padding: 4px 8px; border-radius: 4px;
  font-family: monospace; font-size: 10px;
}
@media (max-width: 720px) {
  .area-strip { grid-template-columns: 1fr 1fr; }
}

/* --- Story block --- */
.story-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.story-photo {
  background: var(--cream-warm);
  aspect-ratio: 5/4;
  border-radius: 10px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: monospace; font-size: 13px;
}
@media (max-width: 820px) { .story-block { grid-template-columns: 1fr; gap: 36px; } }

/* --- About bio cards --- */
.bio-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px;
  align-items: start;
}
.bio-card + .bio-card { margin-top: 64px; }
.bio-photo {
  aspect-ratio: 4/5;
  background: var(--cream-warm); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: monospace; font-size: 13px;
}
.bio-card h3 { margin-top: 0; }
.bio-card .bio-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 720px) {
  .bio-card { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
}

/* --- Map placeholder --- */
.map-placeholder {
  aspect-ratio: 16/9;
  background:
    radial-gradient(ellipse at center, var(--cream-warm), var(--cream)),
    linear-gradient(45deg, var(--cream-warm) 25%, transparent 25%, transparent 75%, var(--cream-warm) 75%, var(--cream-warm)),
    linear-gradient(45deg, var(--cream-warm) 25%, transparent 25%, transparent 75%, var(--cream-warm) 75%, var(--cream-warm));
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 14px 14px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: monospace; color: var(--muted); font-size: 14px;
  border: 1px solid var(--border);
}

/* --- Credentials block --- */
.credentials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.credential {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px 24px;
}
.credential .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 4px; }
.credential .value { font-size: 16px; font-weight: 600; color: var(--charcoal); }

/* --- Services page detail --- */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.service-detail:first-of-type { border-top: none; padding-top: 0; }
.service-detail h2 { margin-top: 0; }
.service-detail .service-bullets {
  list-style: none; padding: 0; margin: 14px 0 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.service-detail .service-bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--charcoal);
}
.service-detail .service-bullets li::before {
  content: ''; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta);
  margin-top: 8px;
}
.service-detail-img {
  background: var(--cream-warm);
  aspect-ratio: 4/3;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: monospace; font-size: 13px;
}
.service-detail:nth-child(even) > div:first-child { order: 2; }
@media (max-width: 820px) {
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .service-detail:nth-child(even) > div:first-child { order: 0; }
}

/* --- Blog grid --- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: transform 180ms, box-shadow 180ms;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(45,69,48,0.18); }
.blog-card-img {
  aspect-ratio: 16/10; background: var(--cream-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: monospace; color: var(--muted); font-size: 12px;
}
.blog-card-body { padding: 22px 24px; }
.blog-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.blog-card h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.3; }
.blog-card p { font-size: 14px; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 920px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* --- Contact --- */
.contact-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 36px 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit; font-size: 15px;
  color: var(--charcoal);
  transition: border-color 150ms, background 150ms;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--surface);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.contact-aside h3 { margin-top: 0; }
.contact-aside .contact-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 24px;
  margin-bottom: 18px;
}
.contact-block .contact-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 4px; }
.contact-block .contact-value { font-size: 17px; font-weight: 600; }
.contact-block a { color: var(--sage-dark); }
.social-links {
  display: flex; gap: 12px; margin-top: 12px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-dark);
  transition: background 180ms, color 180ms;
}
.social-link:hover { background: var(--sage); color: white; }
.social-link svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 22px; }
}

/* --- Footer --- */
.site-footer {
  background: var(--sage-dark);
  color: rgba(250,246,240,0.85);
  padding: 56px 0 32px;
}
.site-footer h4 {
  color: var(--cream); font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 700; margin-bottom: 16px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-mark { color: var(--cream); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(250,246,240,0.75); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: rgba(250,246,240,0.85); font-size: 14px; }
.site-footer ul li a:hover { color: var(--terracotta); }
.site-footer .footer-social { display: flex; gap: 10px; margin-top: 12px; }
.site-footer .footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250,246,240,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: background 150ms;
}
.site-footer .footer-social a:hover { background: var(--terracotta); }
.site-footer .footer-social svg { width: 16px; height: 16px; }
.compliance {
  border-top: 1px solid rgba(250,246,240,0.15);
  padding-top: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: center;
  font-size: 12.5px;
  color: rgba(250,246,240,0.7);
  line-height: 1.6;
}
.compliance-logos {
  display: flex; align-items: center; gap: 24px; justify-content: flex-end;
}
.compliance-logo-placeholder {
  background: rgba(250,246,240,0.1);
  border: 1px dashed rgba(250,246,240,0.3);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 11px; font-family: monospace;
  color: rgba(250,246,240,0.6);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .compliance { grid-template-columns: 1fr; gap: 18px; }
  .compliance-logos { justify-content: flex-start; flex-wrap: wrap; }
}

/* --- Page header (sub pages) --- */
.page-header {
  background: var(--cream-warm);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { font-size: 18px; color: var(--charcoal-soft); max-width: 640px; margin: 0; }

/* --- Final CTA strip --- */
.cta-strip {
  background: var(--terracotta);
  padding: 56px 0;
  color: white;
  text-align: center;
}
.cta-strip h2 { color: white; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.92); font-size: 17px; margin-bottom: 24px; }
.cta-strip .btn-primary { background: white; color: var(--terracotta-dark); }
.cta-strip .btn-primary:hover { background: var(--cream); }

/* --- Placeholder content marker --- */
.placeholder-note {
  background: rgba(198,123,95,0.1);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--charcoal-soft);
  font-family: monospace;
}

/* --- Real photos (added when Barry's images came in) --- */
.bio-photo, .story-photo { padding: 0; overflow: hidden; }
.bio-photo img, .story-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px;
}
.field-photo {
  max-width: 440px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}
.field-photo img { width: 100%; height: auto; display: block; }
/* Logo wordmark in the nav */
.site-nav .brand-mark img { height: 30px; width: auto; display: block; }
