/* ========= Minimal reset ========= */
*,*::before,*::after{box-sizing:border-box}
html:focus-within{scroll-behavior:smooth}
body,h1,h2,h3,p,ul,ol,li,blockquote,figure{margin:0;padding:0}
img{max-width:100%;height:auto;display:block}
ul,ol{padding-left:1.25rem}

/* ========= Design tokens ========= */
:root{
  --dg-forest:#0E3E26;
  --dg-gold:#B9922C;
  --dg-parch:#F7F1DB;
  --dg-parch-2:#FDF7E2;
  --dg-olive:#5A663F;
  --dg-sage:#AEB09B;

  --container:1140px;
  --pad:clamp(20px,5vw,80px); /* Increased max padding */
  --radius:16px; /* Slightly smaller radius for a sharper look */
  --shadow-soft: 0 4px 8px rgba(0,0,0,.04), 0 10px 20px rgba(0,0,0,.06);
  --shadow-lifted: 0 6px 12px rgba(0,0,0,.05), 0 15px 30px rgba(0,0,0,.08);

  --fs-xxl:clamp(28px,4.5vw,46px);
  --fs-xl: clamp(22px,3.2vw,32px);
  --fs-lg: clamp(18px,2.4vw,22px);
  --fs-md: 17px;
  --fs-sm: 15px;
}

/* ========= Base ========= */
body{
  background:
    radial-gradient(1200px 600px at 0% -10%, rgba(185,146,44,0.08), transparent 60%),
    var(--dg-parch);
  color:var(--dg-forest);
  line-height:1.7; /* Increased for readability */
  font-family: "EB Garamond", serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{
  color:var(--dg-forest);
  text-underline-offset:3px;
  transition: color 0.2s ease;
}
a:hover{
  text-decoration:underline;
  color: var(--dg-gold);
}
a:focus-visible{ outline:3px solid var(--dg-gold); outline-offset:2px; text-decoration:none; }

.container{ max-width:var(--container); margin-inline:auto; padding-inline:var(--pad); }

/* ========= Hero (left-half logo, generous breathing room) ========= */
.hero{
  background-color: var(--dg-forest);
  border-bottom:1px solid var(--dg-sage);
}
.hero-in{
  min-height:40vh;
  display:flex;
  align-items:center;
  padding-block: 2rem; /* Ensure padding on all screen sizes */
}
.hero-left{
  width:min(50%, 560px);
  padding:clamp(20px,3vw,40px);
  display:grid;
  place-items:center;
}
.hero-right{
  flex:1;
  padding:clamp(20px,3vw,40px);
  display:flex;
  flex-direction:column;
  gap:1rem; /* Increased gap */
}
.tagline{
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: var(--dg-sage); /* Softer color for contrast */
  font-size: clamp(1rem, 2vw, 1.25rem); /* Responsive font size */
  font-weight: 600;
  letter-spacing: 1px;
  font-style:italic;
}
.hero-logo{
  width:100%;
  max-width:clamp(180px,32vw,360px);
  height:auto;
  background:radial-gradient(120% 120% at 50% 40%, #fff, transparent 70%);
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(185,146,44,.35), 0 10px 30px rgba(14,62,38,.10);
}
.hero-title{
  font-size:clamp(2.25rem, 5vw, 2.5rem); /* Larger, responsive font size */
  font-family:"Raleway", sans-serif;
  font-weight:700;
  color:var(--dg-parch);
  text-align:left;
  line-height: 1.1;
  margin-bottom:0;
}

/* ========= Sections ========= */
.section{ scroll-margin-top:80px; }
.section.alt{ background:var(--dg-parch-2); }

.section-head{
  margin-bottom:2rem; /* Increased spacing */
  position:relative;
  padding-top:.5rem;
}
.eyebrow{
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xl);
  font-weight:800; /* Bolder for more hierarchy */
  letter-spacing:.5px;
  padding-top:.25rem;
}
.section-head::after{
  content:"";
  display:block;
  width:64px;
  height:3px; /* Thicker accent line */
  background:var(--dg-gold);
  margin-top:.75rem; /* More space */
}

/* ========= Prose ========= */
.prose{ padding-block: var(--pad); }
.prose p{ font-size:var(--fs-md); max-width:70ch; }
.prose p + p{ margin-top:1em; }
.prose h3{ font-size:var(--fs-lg); margin:1.2em 0 .4em; }
.prose figure {
  margin-block: 2.5em; /* Adds vertical space above and below the image */
}

.prose figure img {
  border-radius: var(--radius); /* Uses the same soft corners as your cards */
  box-shadow: var(--shadow-soft); /* Adds a gentle shadow for depth */
  border: 1px solid rgba(14, 62, 38, 0.1); /* Adds a very subtle border */
}

/* Let paragraphs go full container width in this section */
.prose.prose-full p { max-width: none; }

/* Blockquote paragraphs too (since they’re also <p>) */
.prose.prose-full blockquote p { max-width: none; }

.prose.prose-full blockquote {width: 50%;}

blockquote{
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 4px solid var(--dg-gold);
}
blockquote p{
  margin:0;
  font-style: italic;
  color: var(--dg-olive);
}
blockquote cite{
  display:block;
  margin-top:.6em;
  font-style:normal;
  color:var(--dg-olive);
  font-size:var(--fs-sm);
}

figure {
  font-style: italic;
  margin-top:.6em;
  margin-bottom:.6em;

}


.francis-photo {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-block: 2.5em;
}

/* Text block and image share equal space */
.francis-photo > :first-child,
.francis-photo figure {
  flex: 1 1 50%;
  max-width: 50%;
}

.francis-photo figure img {
  width: 100%;
  height: auto;
}

.francis-photo figure {
  margin: 0;
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .francis-photo {
    flex-direction: column;
  }
  .francis-photo > :first-child,
  .francis-photo figure {
    max-width: 100%;
    flex: 1 1 auto;
  }
}


/* ========= Cards (Services) ========= */
.cards{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:clamp(16px, 2.5vw, 24px); /* Increased gap */
  margin-top:2rem;
}
.card{
  position: relative; /* This is the anchor for the icon */
  grid-column:span 6;
  padding:clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(14, 62, 38, 0.1); /* Subtle border */
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lifted);
}
.card h3{
  margin:0 0 .5em;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  padding-right: 60px; /* Prevents title text from running under the icon */
}
.card p{
  margin:0;
}

.card-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: auto;
}

.card-links {
  margin-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.card-link {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid var(--dg-sage);
  border-radius: 99px; /* Pill shape */
  color: var(--dg-olive);
  transition: all 0.2s ease;
}

.card-link:hover {
  background-color: var(--dg-gold);
  border-color: var(--dg-gold);
  color: #fff;
}

/* ========= Responsive ========= */

/* Stack hero into a single column on tablets & phones */
@media (max-width: 1024px){
  .hero-in{
    flex-direction:column;
    min-height:auto;
    text-align:center;
    gap: 0;
  }
  .hero-left,
  .hero-right{
    width:100%;
    padding-inline: 0; /* Remove side padding for full bleed */
  }

  .hero-left{ padding-block:clamp(16px,3vw,24px); }
  .hero-logo{ max-width:clamp(160px,50vw,320px); margin-inline:auto; }

  .hero-title{
    font-size:clamp(24px,8vw,42px);
    margin:10px 0 6px;
    text-align:center;
  }
  .tagline{
    font-size:clamp(16px,4.2vw,20px);
    max-width:40ch;
    margin-inline:auto;
  }
}

/* Stack cards on narrow screens; keep hero tweaks */
@media (max-width: 820px){
  .cards{ grid-template-columns:1fr; }
  .card{ grid-column:1 / -1; }
}

/* Optional tighter phone tweak */
@media (max-width: 560px){
  .tagline{ max-width:30ch; }
  .prose.prose-full blockquote {width: 100%;}
}

/* ========= Footer ========= */
.site-footer{
  border-top:1px solid var(--dg-sage);
  background:linear-gradient(180deg, rgba(185,146,44,.05), rgba(185,146,44,0));
}
.footer-in{
  padding-block:clamp(28px,4vw,56px);
  display:grid;
  gap:.5rem;
}
.footer-title{
  font-family: "Raleway", sans-serif;
  font-weight:700;
  letter-spacing:.3px;
  margin-bottom:.25rem;
}
.site-footer small{ color:var(--dg-olive); }
