/* ===========================================
   CG Design Studio — style.css
   =========================================== */

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  --white:     #FFFFFF;
  --off-white: #F7F5F2;
  --stone:     #C9C3BB;
  --mid:       #5A5856;
  --muted:     #9A9490;
  --dark:      #2D2B29;
  --nav-h:     110px;
  --footer-h:  108px;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Century Gothic', 'Jost', 'Gill Sans', 'Trebuchet MS', Arial, sans-serif;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  line-height: 1.75;
  letter-spacing: 0.015em;
}

/* ===========================================
   HEADER
   PROJECTS   ABOUT   [LOGO]   RECOGNITION   CONTACT
   =========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--white);
  overflow: visible;
}

.nav-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  padding: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 24px 0 40px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 40px 0 24px;
}

.nav-left a,
.nav-right a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.25s;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left a.active,
.nav-right a.active {
  color: var(--dark);
}

.nav-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo svg { width: 110px; height: auto; }

/* ===========================================
   FOOTER
   [logo + name]   CONTACT  [instagram]   © copy
   =========================================== */
.site-footer {
  height: var(--footer-h);
  background: var(--off-white);
  border-top: 1px solid rgba(0,0,0,0.07);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo svg { width: 72px; height: auto; flex-shrink: 0; }

.footer-studio-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.25s;
}

.footer-link:hover { color: var(--dark); }

.footer-instagram {
  color: var(--mid);
  display: flex;
  align-items: center;
  transition: color 0.25s;
}

.footer-instagram svg { width: 24px; height: 24px; }

.footer-instagram:hover { color: var(--dark); }

.footer-copy {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: right;
}

/* Page offset for fixed header */
main { padding-top: var(--nav-h); }

/* ===========================================
   HOME — HERO SLIDESHOW
   =========================================== */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  min-height: 520px;
  overflow: hidden;
  background: var(--off-white);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.slideshow-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s;
  padding: 0;
}

.dot.active { background: rgba(255,255,255,0.95); }

/* ===========================================
   HOME — STUDIO INTRO
   =========================================== */
.home-intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 40px 64px;
  text-align: center;
}

.home-tagline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.home-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 24px;
}

.home-cta-line {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===========================================
   HOME — CAROLINA BIO
   =========================================== */
.home-bio {
  background: var(--off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 80px 6%;
  column-gap: 6%;
  row-gap: 0;
}

.bio-text p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.95;
  margin-bottom: 20px;
}

.bio-text p:last-child { margin-bottom: 0; }

.bio-image {
  overflow: hidden;
  background: var(--stone);
  min-height: 500px;
}

/* ===========================================
   ABOUT — THE STUDIO (slide 4 layout)
   =========================================== */

/* Image left, text right */
.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 80px 8%;
  gap: 80px;
}

.studio-image {
  height: 560px;
  overflow: hidden;
  background: var(--off-white);
}

.studio-text { padding-top: 8px; }

.studio-heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.studio-text p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.95;
  margin-bottom: 20px;
}

.studio-text p:last-child { margin-bottom: 0; }

/* Full-width CTA image with overlay */
.studio-cta {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--off-white);
}

.studio-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-cta-overlay {
  position: absolute;
  bottom: 56px;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

.cta-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 11px 22px;
  transition: background 0.25s, color 0.25s;
}

.cta-btn:hover {
  background: var(--white);
  color: var(--dark);
}

/* ===========================================
   PROJECTS
   =========================================== */
.projects-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 40px 80px;
}

.projects-quote {
  text-align: center;
  padding: 40px 20% 52px;
}

.projects-quote blockquote {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 14px;
}

.projects-quote cite {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  font-style: normal;
}

/* Two-column masonry-style grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.project-item { position: relative; }

.project-image-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--off-white);
}

.project-tall .project-image-wrap { height: 520px; }

.project-image-wrap img {
  transition: transform 0.6s ease;
}

.project-item:hover .project-image-wrap img {
  transform: scale(1.04);
}

.project-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(30,28,26,0.55);
  padding: 10px 20px;
}

.project-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 14px 0 6px;
}

/* ===========================================
   RECOGNITION
   =========================================== */
.recognition-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 40px 80px;
}

.recognition-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
}

.recognition-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  margin-bottom: 80px;
}

.testimonial-card { border-top: 1px solid var(--stone); padding-top: 28px; }

.testimonial-quote {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 20px;
}

.testimonial-source {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.follow-section { border-top: 1px solid var(--stone); padding-top: 56px; }

.follow-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 32px;
}

.follow-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 32px;
}

.follow-images img {
  height: 280px;
  object-fit: cover;
  background: var(--off-white);
}

.follow-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  border: 1px solid var(--dark);
  padding: 12px 28px;
  transition: background 0.25s, color 0.25s;
}

.follow-cta:hover { background: var(--dark); color: var(--white); }

/* ===========================================
   CONTACT
   =========================================== */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  padding-top: var(--nav-h);
}

.contact-image {
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  background: var(--off-white);
}

.contact-panel {
  padding: 72px 60px 60px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.contact-section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.contact-detail {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.contact-detail span { color: var(--muted); }
.contact-detail a:hover { color: var(--dark); }

.contact-instagram {
  display: inline-flex;
  margin-top: 16px;
  color: var(--mid);
  transition: color 0.25s;
}

.contact-instagram:hover { color: var(--dark); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--dark); }

.send-btn {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--dark);
  border: 1px solid var(--dark);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.send-btn:hover { background: transparent; color: var(--dark); }

.contact-legal {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--stone);
  padding-top: 24px;
  margin-top: auto;
}

/* ===========================================
   THANK YOU PAGE
   =========================================== */
.thanks-main {
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.thanks-heading {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 20px;
}

.thanks-body {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 40px;
}

.thanks-link {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}

.thanks-link:hover { border-color: var(--dark); }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 900px) {

  .nav-inner { padding: 0; }
  .nav-left  { padding: 0 12px 0 20px; }
  .nav-right { padding: 0 20px 0 12px; }
  .nav-left a, .nav-right a { font-size: 9px; letter-spacing: 0.1em; }
  .nav-logo svg { width: 80px; height: auto; }

  .footer-inner { padding: 0 24px; }
  .footer-studio-name { display: none; }
  .footer-copy { font-size: 9px; }

  .home-bio {
    grid-template-columns: 1fr;
    padding: 56px 6%;
    gap: 40px;
  }

  .bio-image { min-height: 300px; height: auto; }

  .studio-split {
    grid-template-columns: 1fr;
    padding: 56px 6%;
    gap: 40px;
  }

  .studio-image { height: 380px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-tall .project-image-wrap { height: 340px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-main { grid-template-columns: 1fr; }
  .contact-image { min-height: 320px; height: 320px; }
  .contact-panel { padding: 40px 24px; }
}

/* Explicit cover images for containers with fixed heights */
.bio-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.studio-image img,
.studio-cta img,
.contact-image img,
.project-image-wrap img,
.follow-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 480px) {
  :root { --nav-h: 90px; }
  .nav-left  { padding: 0 8px 0 12px; }
  .nav-right { padding: 0 12px 0 8px; }
  .nav-left a, .nav-right a { font-size: 7.5px; letter-spacing: 0.06em; }
  .nav-logo svg { width: 64px; height: auto; }
  .footer-logo svg { width: 56px; height: auto; }
  .footer-copy { font-size: 10px; }
}
