/* Sulca’s Carpets — website styles
   Light sage green modern theme; soft sage accents, charcoal-green text */

:root {
  --cream: #f5f8f4;
  --cream-deep: #eaf1e8;
  --sand: #dde8da;
  --oak: #8fae94;
  --walnut: #4f6656;
  --charcoal: #2a2e2b;
  --ink: #1f2a24;
  --forest: #5b8a6a;
  --forest-deep: #3f6b4e;
  --moss: #a9c6a8;
  --gold: #4a7a5a;
  --white: #ffffff;
  --muted: #5c6b60;
  --line: rgba(63, 107, 78, 0.14);
  --shadow: 0 12px 40px rgba(63, 107, 78, 0.10);
  --radius: 14px;
  --header-h: 76px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.15rem, 6.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.55rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 700px) {
  .logo-img {
    height: 64px;
    max-width: 88px;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
}

.logo-text small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-desktop a:hover { color: var(--forest); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.nav-mobile[hidden] { display: none; }

.nav-mobile a:not(.btn) {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
}

.nav-mobile a:not(.btn):hover { background: var(--cream-deep); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.btn-primary:hover {
  background: var(--forest-deep);
  color: var(--cream);
  border-color: var(--forest-deep);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--charcoal); color: var(--ink); }

.btn-call {
  background: var(--forest);
  color: var(--cream);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}
.btn-call:hover {
  background: var(--forest-deep);
  color: var(--cream);
}

.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* —— Hero (split layout, arched photo) —— */
.hero {
  position: relative;
  background: var(--cream);
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 600px; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forest-deep);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--forest);
}

.hero-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin: 0 0 1.4rem;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--forest-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(63,107,78,0.25);
}
.hero-badge-pill svg { color: #e8c766; flex: none; }
.hero-badge-since {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.hero h1 {
  font-size: clamp(2.5rem, 8.5vw, 4.15rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--forest);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 32em;
  margin: 0 0 1.85rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-ctas .btn { border-radius: 6px; }
.hero .btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.hero .btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.hero-address {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.hero-address strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
}
.hero-address-line { display: block; font-size: 0.82rem; }
.hero-address-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--forest-deep);
  display: grid;
  place-items: center;
}

.hero-media {
  position: relative;
  padding: 18px 0 0 18px;
  margin-bottom: 1.5rem;
}
.hero-arch {
  position: absolute;
  top: 0;
  left: 0;
  right: 18px;
  bottom: 18px;
  border: 1.5px solid var(--moss);
  border-radius: 240px 240px 16px 16px;
  pointer-events: none;
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 240px 240px 16px 16px;
  box-shadow: var(--shadow);
}
.hero-rating {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--white);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  min-width: 170px;
  box-shadow: 0 18px 40px rgba(31, 42, 36, 0.16);
}
.hero-stars {
  color: var(--forest);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.hero-rating strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}
.hero-rating-caption { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 820px) {
  .hero-photo { border-radius: 160px 160px 14px 14px; }
  .hero-arch { border-radius: 160px 160px 14px 14px; }
  .hero-rating { min-width: 0; padding: 0.8rem 1rem; }
  .hero-rating strong { font-size: 1.25rem; }
  .hero-badge-pill { font-size: 0.85rem; padding: 0.45rem 0.85rem; }
  .hero-badge-since { font-size: 0.8rem; }
}

@media (min-width: 821px) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-content { max-width: 620px; }
  .hero-layout {
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
  }
  .hero-media { margin-bottom: 0; padding: 22px 0 0 22px; }
  .hero-arch { right: 22px; bottom: 22px; }
  .hero-photo { aspect-ratio: 4 / 4.2; max-height: 600px; }
  .hero-rating { left: -2rem; bottom: 2.5rem; }
}

/* —— Trust strip —— */
.trust-strip {
  background: var(--cream-deep);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
  text-align: center;
}

.trust-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.trust-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cream-deep);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head .eyebrow { color: var(--forest); }

.section-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

/* —— Services —— */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream-deep);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.service-card h3 { margin-bottom: 0.35rem; }
.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.service-card-cta {
  background: linear-gradient(145deg, var(--forest), var(--forest-deep));
  color: var(--cream);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-cta h3 { color: var(--white); }
.service-card-cta p { color: rgba(245, 248, 244, 0.8); margin-bottom: 1rem; }
.service-card-cta .btn-primary {
  background: var(--cream);
  color: var(--forest-deep);
  border-color: var(--cream);
  align-self: flex-start;
}
.service-card-cta .btn-primary:hover {
  background: var(--sand);
  border-color: var(--sand);
}

.dealer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.75rem;
  font-style: italic;
}


/* —— Instagram —— */
.ig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 2rem;
}
.ig-embed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.ig-embed-grid blockquote {
  min-height: 120px;
}
.ig-fallback-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.ig-local-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 700px) {
  .ig-local-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}
.ig-tile {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sand);
  border: 1px solid var(--line);
}
.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.ig-tile:hover img { transform: scale(1.05); }

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--white);
}

/* —— About —— */
.about-layout {
  display: grid;
  gap: 2rem;
}

.about-copy p { color: var(--charcoal); }

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
}

.about-card h3 {
  font-size: 1.45rem;
  margin: 0;
}

.about-card-address {
  font-size: 1rem;
  margin: 0;
}

.hours { margin: 0; font-size: 0.95rem; }
.service-area {
  margin-top: 1.25rem;
  color: var(--forest-deep);
}

.hours-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.about-card .btn { align-self: stretch; }

/* —— Reviews —— */
.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border-left: 3px solid var(--forest);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.review-card p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 0.85rem;
}

.review-card footer {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
  font-family: var(--font-sans);
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-block h3 { margin-bottom: 0.5rem; }
.contact-block a { font-weight: 500; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1.25rem;
  aspect-ratio: 16 / 11;
  background: var(--sand);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.social-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.social-row a {
  font-weight: 600;
  text-decoration: none;
  color: var(--forest);
}
.social-row a:hover { text-decoration: underline; }

.estimate-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.estimate-form h3 { margin: 0; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -0.35rem 0 0;
}

.estimate-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--charcoal);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(91, 138, 106, 0.25);
  background: var(--white);
}

.estimate-form textarea { resize: vertical; min-height: 100px; }

.estimate-form input.is-invalid,
.estimate-form select.is-invalid {
  border-color: #a33;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(245, 248, 244, 0.75);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.footer-brand p { margin: 0 0 0.5rem; }
.footer-brand a,
.footer-social a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 500;
}
.footer-brand a:hover,
.footer-social a:hover { color: var(--cream); text-decoration: underline; }

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-area {
  font-size: 0.8rem;
  color: rgba(245, 248, 244, 0.7);
  border-top: 1px solid rgba(245, 248, 244, 0.1);
  padding-top: 1.25rem;
  margin: 0;
  line-height: 1.5;
}

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1100;
  width: min(420px, calc(100% - 2rem));
  background: var(--forest-deep);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease);
  text-align: center;
  line-height: 1.45;
}

.toast[hidden] { display: block; visibility: hidden; pointer-events: none; }

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

/* —— Responsive —— */
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .about-layout {
    grid-template-columns: 1.4fr 0.85fr;
    align-items: start;
    gap: 3rem;
  }
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .section { padding: 5rem 0; }
}

@media (min-width: 1100px) {
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 2;
  }
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(6) img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* —— Estimate form extras —— */
.form-honey {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.estimate-form { position: relative; }
.estimate-form .req { color: var(--forest-deep); }
.estimate-form button[disabled] { opacity: 0.65; cursor: progress; }
.toast.is-error { background: #8a2f2f; }
