/* ============================================================
   De Caires Classics — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@400;500&display=swap');

/* --- Tokens ------------------------------------------------- */
:root {
  --black:      #0A0A0A;
  --white:      #F5F0E8;
  --gold:       #B8960C;
  --grey:       #4A4A4A;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-width:  1200px;
  --section:    clamp(5rem, 10vw, 9rem);
  --gutter:     clamp(1.5rem, 5vw, 3rem);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Layout ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section) 0; }

.divider {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.divider--center { margin: 1.25rem auto; }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.75rem 0;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  padding: 1.1rem 0;
  border-bottom-color: rgba(184, 150, 12, 0.15);
  backdrop-filter: blur(8px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.nav__logo img {
  height: 132px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.8);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--white); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    gap: 0;
    background: #0d0d0d;
    border-left: 1px solid rgba(184, 150, 12, 0.2);
    padding: 6rem 2.5rem 2.5rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__links.open { right: 0; }
  .nav__links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__links a {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
  }
}

/* --- Hero --------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.4);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.hero__logo {
  max-width: min(520px, 82vw);
  margin: 0 auto 2.5rem;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.04em;
  color: rgba(245, 240, 232, 0.75);
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--grey);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 2.5rem;
  background: var(--gold);
  animation: scrollline 2s ease-in-out infinite;
}
@keyframes scrollline {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* --- Page hero (inner pages) -------------------------------- */
.page-hero {
  padding: 9rem 0 4.5rem;
  border-bottom: 1px solid rgba(184, 150, 12, 0.12);
}
.page-hero .eyebrow { margin-bottom: 1rem; }

/* --- Section header ----------------------------------------- */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0; }

/* --- Intro -------------------------------------------------- */
.intro { text-align: center; }
.intro__text {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.85;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

/* --- Services grid ------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(184, 150, 12, 0.15);
  gap: 1px;
  background: rgba(184, 150, 12, 0.15);
}
.service-card {
  background: var(--black);
  padding: 2.5rem;
  transition: background 0.3s;
}
.service-card:hover { background: #0f0f0f; }
.service-card__line {
  width: 2rem; height: 1px;
  background: var(--gold);
  margin-bottom: 1.75rem;
}
.service-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 0.9rem;
}
.service-card p {
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* --- Portfolio grid ----------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  border: 1px solid rgba(184, 150, 12, 0.1);
}
.portfolio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.1);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.portfolio-card:hover img {
  transform: scale(1.05);
  filter: saturate(0.75) contrast(1.1);
}
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity 0.35s;
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.portfolio-card__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
}

/* Placeholder card (no photo yet) */
.portfolio-card--placeholder .portfolio-card__overlay {
  opacity: 1;
  background: linear-gradient(160deg, #111 0%, var(--black) 100%);
}

/* --- About split -------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about-split__image {
  aspect-ratio: 3/4;
  background: #111;
  border: 1px solid rgba(184, 150, 12, 0.15);
  overflow: hidden;
}
.about-split__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.4) contrast(1.15);
}
.about-split__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-split__image--placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.about-split__image--portrait img {
  object-position: top center;
}
@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__image { aspect-ratio: 4/3; }
  .about-split__image--portrait { aspect-ratio: 3/4; }
}

/* --- Prose -------------------------------------------------- */
.prose p {
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: clamp(0.97rem, 1.5vw, 1.07rem);
}
.prose p:last-child { margin-bottom: 0; }

/* --- Gold link --------------------------------------------- */
.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2rem;
  transition: gap 0.2s;
}
.link-gold::after { content: '→'; }
.link-gold:hover { gap: 0.9rem; }

/* --- Contact block ------------------------------------------ */
.contact-block { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-block__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-top: 1.5rem;
  transition: opacity 0.25s;
}
.contact-block__email:hover { opacity: 0.7; }
.contact-block__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--white);
  margin-top: 2.5rem;
  transition: opacity 0.25s;
}
.contact-block__whatsapp:hover { opacity: 0.7; }
.contact-block__whatsapp svg { flex-shrink: 0; }
.contact-block__social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--white);
  margin-top: 1.5rem;
  transition: opacity 0.25s;
}
.contact-block__social:hover { opacity: 0.7; }
.contact-block__social svg { flex-shrink: 0; }

/* --- WhatsApp form ------------------------------------------ */
.wa-form { margin-top: 0; }
.wa-form__field { margin-bottom: 2rem; }
.wa-form__field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.wa-form__field input,
.wa-form__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(184,150,12,0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
  transition: border-color 0.25s;
  outline: none;
  resize: none;
}
.wa-form__field input::placeholder,
.wa-form__field textarea::placeholder { color: rgba(245,240,232,0.3); }
.wa-form__field input:focus,
.wa-form__field textarea:focus { border-bottom-color: var(--gold); }
.wa-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid rgba(184,150,12,0.5);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.wa-form__submit:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.contact-block__note {
  margin-top: 1.5rem;
  color: var(--grey);
  font-size: 0.88rem;
}

/* --- Portfolio detail --------------------------------------- */
.project-header { margin-bottom: 3rem; }
.project-header .eyebrow { margin-bottom: 0.75rem; }
.project-meta {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184,150,12,0.15);
}
.project-meta__item {}
.project-meta__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.3rem;
}
.project-meta__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}
.image-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  filter: saturate(0.6) contrast(1.1);
}
.image-grid--featured { grid-template-columns: 1fr; }
.image-grid--featured img { aspect-ratio: 16/7; }
@media (max-width: 600px) {
  .project-meta { flex-wrap: wrap; gap: 1.5rem; }
  .image-grid { grid-template-columns: 1fr; }
  .image-grid--featured img { aspect-ratio: 4/3; }
}

/* --- Footer ------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(184, 150, 12, 0.15);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  font-size: 0.72rem;
  color: var(--grey);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}
