/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — white + gold, inspired by elizabethashinteriors.com */
  --white:        #FFFFFF;
  --off-white:    #F8F7F5;
  --pale:         #F0EFEd;
  --charcoal:     #1A1A1A;
  --gray-dark:    #3D3D3D;
  --gray-mid:     #777777;
  --gray-light:   #E4E2DE;
  --gray-pale:    #F3F2F0;
  --gold:         #C5A028;
  --gold-dark:    #A8861C;
  --gold-pale:    rgba(197,160,40,0.10);

  --nav-h:        80px;
  --max-w:        1160px;
  --radius:       2px;
  --t:            0.28s ease;
  --shadow-sm:    0 4px 20px rgba(0,0,0,0.07);
  --shadow:       0 10px 40px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
em  { font-style: italic; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 110px 0; }
.section--pale { background: var(--off-white); }

/* ── Thin gold rule used as a decorative accent ── */
.gold-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
}
.gold-rule--left { margin-left: 0; }

/* ── Typography helpers ── */
.section__eyebrow {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section__heading em {
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
}

.section__sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.9;
  max-width: 500px;
}

.section__header {
  text-align: center;
  margin-bottom: 68px;
}
.section__header .gold-rule { margin: 0 auto 28px; }
.section__header .section__sub { margin: 0 auto; }

.break { display: none; }
@media (min-width: 640px) { .break { display: inline; } }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
  text-align: center;
}

/* On dark backgrounds (hero) */
.btn--light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--light:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

/* On light backgrounds (sections) */
.btn--primary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Gold-filled variant */
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn--full { width: 100%; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0);
  transition: background var(--t), box-shadow var(--t);
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-light);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--t);
}
.nav.scrolled .nav__logo { color: var(--charcoal); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav__links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--t);
}
.nav__links a:hover { color: var(--white); }

.nav.scrolled .nav__links a { color: var(--gray-dark); }
.nav.scrolled .nav__links a:hover { color: var(--gold); }

/* "Get in Touch" — gold on scroll, white underline on hero */
.nav__cta {
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}
.nav.scrolled .nav__cta {
  border-bottom-color: var(--gold);
  color: var(--gold) !important;
}
.nav.scrolled .nav__cta:hover { color: var(--gold-dark) !important; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: background var(--t);
}
.nav.scrolled .nav__burger span { background: var(--charcoal); }

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    padding: 12px 0 20px;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    color: var(--gray-dark);
    padding: 13px 28px;
    width: 100%;
    border-bottom: none !important;
  }
  .nav__links a:hover { color: var(--gold); }
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: url('../images/hero/hero-bg.jpg')
              center / cover no-repeat;
  background-color: #2C2821;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,15,8,0.52) 0%,
    rgba(20,15,8,0.30) 60%,
    rgba(20,15,8,0.50) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 820px;
}

.hero__eyebrow {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero__sub {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.78);
  margin-bottom: 48px;
  line-height: 2;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.45);
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.12); }
}

/* ── About ── */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 52px; }
}

.about__image-wrap { position: relative; }

.about__image {
  width: 100%;
  height: 580px;
}

/* Small gold badge overlapping the image */
.about__badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--gold);
  color: var(--white);
  padding: 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.about__badge-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
}
.about__badge-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  line-height: 1.5;
}

.about__content .section__eyebrow { margin-bottom: 10px; }
.about__content .section__heading { text-align: left; }

.about__body {
  font-size: 0.94rem;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.95;
  margin-bottom: 20px;
}

.about__stats {
  display: flex;
  gap: 48px;
  margin: 36px 0;
  padding: 32px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.stat__num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ── Services ── */
.services { background: var(--off-white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                      /* 1px gap creates thin grid lines */
  background: var(--gray-light); /* gap background = divider colour */
  border: 1px solid var(--gray-light);
}
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  padding: 44px 36px;
  transition: background var(--t);
  position: relative;
  overflow: hidden;
}
/* Gold top accent line — revealed on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card--featured {
  background: var(--charcoal);
  color: var(--white);
}
.service-card--featured::before { background: var(--gold); }
.service-card--featured:hover::before { transform: scaleX(1); }
.service-card--featured .service-card__body { color: rgba(255,255,255,0.55); }
.service-card--featured .service-card__more { color: var(--gold); }
.service-card--featured .service-card__icon svg { stroke: var(--gold); }

.service-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  stroke-width: 1.4;
}

.service-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.service-card__body {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.85;
  margin-bottom: 24px;
}

.service-card__more {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
}

/* ── Portfolio ── */
.portfolio { background: var(--white); }

.portfolio__filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--gray-light);
}

.filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.filter-btn.active,
.filter-btn:hover {
  color: var(--charcoal);
  border-bottom-color: var(--gold);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 290px;
  gap: 12px;
}
@media (max-width: 900px) {
  .portfolio__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; }
}
@media (max-width: 560px) {
  .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 270px; }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--pale);
}
.portfolio-item.span-2 { grid-row: span 2; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: brightness(0.97);
}
.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.88);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(20,15,8,0.72) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  color: var(--white);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 4px;
}
.portfolio-item__cat {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.portfolio-item[hidden] { display: none; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,10,5,0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox__content {
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.lightbox__caption { text-align: center; color: var(--white); }
.lightbox__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
}
.lightbox__cat {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  border-color: var(--gold);
  background: rgba(197,160,40,0.12);
}
.lightbox__close {
  top: 20px; right: 20px;
  width: 42px; height: 42px;
  font-size: 1.4rem;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  width: 50px; height: 50px;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

@media (max-width: 600px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* ── Contact ── */
.contact { background: var(--off-white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 52px; }
}

.contact__info .section__heading { text-align: left; }

.contact__body {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray-mid);
  line-height: 1.95;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--gray-dark);
}
.contact__details li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--gold);
}

.contact__socials { display: flex; gap: 12px; }
.contact__socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  transition: border-color var(--t), color var(--t);
}
.contact__socials a svg { width: 16px; height: 16px; }
.contact__socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ── Contact Form ── */
.contact__form {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 44px;
}
@media (max-width: 540px) { .contact__form { padding: 26px; } }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form__group label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.form__group label span { color: var(--gold); }

.form__group input,
.form__group select,
.form__group textarea {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-dark); /* underline-style bottom border */
  padding: 12px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  width: 100%;
  transition: border-color var(--t), background var(--t);
  border-radius: 0; /* sharp corners for a refined look */
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gray-light);
  border-bottom-color: var(--gold);
  background: var(--white);
}
.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--gray-light); }
.form__group textarea { resize: vertical; min-height: 120px; }

.form__success,
.form__error {
  margin-top: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  padding: 12px 16px;
  text-align: center;
}
.form__success { background: #F0F7F2; color: #2D6A4F; border: 1px solid #C3DDD0; }
.form__error   { background: #FDF3F2; color: #9B2C2C; border: 1px solid #F5C6C4; }

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.45);
  padding: 56px 0 36px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer__logo {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.footer__brand p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
}

.footer__nav ul {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color var(--t);
}
.footer__nav a:hover { color: var(--gold); }

.footer__copy {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── Fade-in scroll animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
