/* Ray Property Services — temporary website
   Follows Brand Guidelines v1.0: cream and greens carry the design, Harvest Orange is the
   accent; orange text only at large sizes; Shrikhand for a few words, Montserrat for headings
   and labels, Source Sans 3 for body; logo on cream, at least 120px wide. */

:root {
  --harvest-orange: #CB5B12;
  --harvest-orange-dark: #A94A0E;
  --fence-green: #1A2B1B;
  --sunrise-cream: #FEFBF3;
  --pasture-green: #5E6540;
  --meadow-sage: #B3B187;
  --sage-tint: #EDEBDD;
  --rule: #E6E2D2;
  --white: #FFFFFF;

  --font-accent: "Shrikhand", "Arial Black", serif;
  --font-heading: "Montserrat", "Arial", sans-serif;
  --font-body: "Source Sans 3", "Calibri", "Arial", sans-serif;

  --radius: 8px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fence-green);
  background: var(--sunrise-cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fence-green); text-decoration-color: var(--harvest-orange); text-underline-offset: 3px; }
a:hover { color: var(--harvest-orange-dark); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--pasture-green); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--fence-green); color: var(--sunrise-cream); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.25rem; color: var(--pasture-green); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Montserrat 600, all caps, wide spacing */
.label {
  font-family: var(--font-heading); font-weight: 600; font-size: .8125rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--pasture-green); margin: 0 0 12px;
}
.label--sage { color: var(--meadow-sage); }
.label--cream { color: var(--sunrise-cream); }

/* Shrikhand: a few words max */
.accent-headline {
  font-family: var(--font-accent); font-weight: 400; line-height: 1.1;
  font-size: clamp(2.5rem, 7vw, 4rem); color: var(--harvest-orange); margin: 0 0 20px;
}
.accent-headline--small { font-size: 2rem; margin-bottom: 8px; }

/* Buttons. Cream on orange is 4.0:1, so orange buttons use 19px bold text (brand rule: 14pt bold+). */
.btn {
  display: inline-block; padding: 14px 26px; border: 2px solid var(--harvest-orange); border-radius: 6px;
  background: var(--harvest-orange); color: var(--sunrise-cream);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1875rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--harvest-orange-dark); border-color: var(--harvest-orange-dark); color: var(--sunrise-cream); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--fence-green); border-color: var(--fence-green); font-size: 1rem; }
.btn-secondary:hover { background: var(--pasture-green); border-color: var(--pasture-green); }
.btn-outline { background: transparent; color: var(--fence-green); border-color: var(--fence-green); font-size: 1rem; }
.btn-on-dark { color: var(--sunrise-cream); border-color: var(--sunrise-cream); }
.btn-on-dark:hover { background: var(--sunrise-cream); color: var(--fence-green); border-color: var(--sunrise-cream); }
.btn-small { padding: 9px 16px; font-size: .9375rem; }

/* Header: logo on cream at 120px+ with clear space */
.site-header { background: var(--sunrise-cream); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: block; padding: 4px; }
.brand img { width: 128px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-family: var(--font-heading); font-weight: 600; font-size: .9375rem; color: var(--fence-green);
  text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--harvest-orange); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; width: 32px; height: 24px; position: relative; cursor: pointer; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--pasture-green); outline-offset: 4px; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--fence-green); border-radius: 2px;
  }
  .nav-toggle-label span { top: 10px; }
  .nav-toggle-label span::before { top: -9px; }
  .nav-toggle-label span::after { top: 9px; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-nav .btn { text-align: center; margin-top: 14px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero: Pasture Green panel with a sage sun, like the brand's social post layout */
.hero { position: relative; overflow: hidden; background: var(--pasture-green); color: var(--sunrise-cream); padding: clamp(56px, 9vw, 104px) 0; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--meadow-sage); opacity: .35; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .accent-headline { color: var(--sunrise-cream); max-width: 12em; }
.hero .lead { color: var(--sunrise-cream); }
.band { height: 16px; background: var(--meadow-sage); }

/* Sections */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--sage-tint); }
.section-header { margin-bottom: 28px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--pasture-green); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p { font-size: 1rem; color: var(--pasture-green); margin-bottom: 12px; }
.card-meta { margin-top: auto !important; margin-bottom: 0 !important; }
.card-meta a { font-weight: 600; color: var(--fence-green); }
.card--featured { border-top-color: var(--harvest-orange); }
.card-grid--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
/* The "coming soon" note shows until the gallery has a photo. */
.gallery:not(:has(figure)) { display: none; }
.gallery:has(figure) ~ .gallery-empty { display: none; }
.work { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.work--compare { grid-column: span 2; }
@media (max-width: 640px) { .work--compare { grid-column: auto; } }
.work-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.is-collapsed figure:nth-child(n+10) { display: none; }
.gallery-more { text-align: center; margin: 24px 0 0; }
.work--video video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--fence-green); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule); }
.work figcaption { padding: 12px 16px; font-size: 1rem; }
.tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--fence-green); color: var(--sunrise-cream);
  font-family: var(--font-heading); font-weight: 700; font-size: .6875rem; letter-spacing: .15em; text-transform: uppercase;
}
.tag--after { background: var(--harvest-orange-dark); }
.gallery-empty { background: var(--white); border: 1px dashed var(--meadow-sage); border-radius: var(--radius); padding: 32px; text-align: center; }
.gallery-empty p:last-child { max-width: 34em; margin: 0 auto; color: var(--pasture-green); }

.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); background: var(--fence-green); color: var(--sunrise-cream); border-radius: var(--radius); }
.lightbox::backdrop { background: rgb(26 43 27 / .85); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox p { margin: 0; padding: 12px 16px; font-size: 1rem; }
.lightbox-close {
  position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--sunrise-cream); color: var(--fence-green); font-size: 1.75rem; line-height: 1; cursor: pointer;
}

/* About */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.values li { background: var(--fence-green); color: var(--sunrise-cream); border-radius: var(--radius); padding: 18px 22px; font-size: 1rem; }
.values strong { display: block; font-family: var(--font-heading); font-size: 1.0625rem; }

/* Form */
.form fieldset { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px 8px; margin: 0 0 20px; }
.form legend { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; padding: 0 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.field-wide { grid-column: 1 / -1; }
.field > label, .field-label { font-family: var(--font-heading); font-weight: 600; font-size: .875rem; }
.req { color: var(--harvest-orange-dark); }
.field input:not([type=checkbox]), .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fence-green); padding: .65em .8em;
  border: 1px solid var(--meadow-sage); border-radius: 6px; background: var(--white); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pasture-green); outline-offset: 0; border-color: var(--pasture-green); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.checks label { display: flex; gap: 10px; align-items: center; font-size: 1rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--pasture-green); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--harvest-orange-dark) !important; }
.has-error .field-label, .has-error > label { color: var(--harvest-orange-dark); }
.help { color: var(--pasture-green); font-size: .9375rem; }
.form-note { margin-top: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; background: var(--white); border: 1px solid var(--rule); border-left-width: 5px; }
.alert-error { border-left-color: var(--harvest-orange-dark); color: var(--harvest-orange-dark); }
.alert-error ul { margin: .4em 0 0; padding-left: 1.2em; }
.alert-error p { margin: 0; }
.alert-success { border-left-color: var(--pasture-green); }
.alert:focus { outline: none; }

/* Contact: dark panel with pasture + orange stripes, like the business card */
.contact {
  background: linear-gradient(to top, var(--harvest-orange) 0 10px, var(--pasture-green) 10px 18px, var(--fence-green) 18px);
  color: var(--sunrise-cream); border-radius: var(--radius); overflow: hidden;
}
.contact-inner { padding: 36px 32px 52px; }
.contact h2 { color: var(--sunrise-cream); margin-bottom: 6px; }
.contact p { opacity: .9; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, max-content)); gap: 16px 48px; margin: 24px 0 0; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list dt { margin: 0; font-size: .75rem; }
.contact-list dd { margin: 0; }
.contact a { color: var(--sunrise-cream); text-decoration-color: var(--meadow-sage); }
.contact a:hover { color: var(--sunrise-cream); text-decoration-color: var(--sunrise-cream); }
.contact a:focus-visible { outline-color: var(--meadow-sage); }

/* Footer: sage band over pasture, as on the guide cover */
.footer-base { background: var(--pasture-green); padding: 28px 16px; text-align: center; }
.footer-base p { margin: 0; font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
