/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FAF8F5;
    color: #2F2F2F;
    font-family: "Lora", serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 80px;
}


/* ===========================
   Header
=========================== */

header {
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #FAF8F5;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(20px);
    position: relative;
    z-index: 1000;
}

/* Logo */

.logo a {
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #2F2F2F;
}


/* Navigation Links */

nav ul {
    display: flex;
    gap: 55px;
}
/* Dropdown Menu */

.nav-item {
    position: relative;
}
.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 30px;
}
.dropdown {
    position: absolute;
    top: 45px;
    left: 0;

    background: #FAF8F5;
    padding: 25px 35px;

    min-width: 220px;

    display: none;
    flex-direction: column;
    gap: 18px;

    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    z-index: 10;
}

.dropdown a {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2F2F2F;
    white-space: nowrap;

    transition: color 0.3s ease;
}

.dropdown a:hover {
    color: #B89D87;
}

.nav-item:hover .dropdown {
    display: flex;
}
nav ul a {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: #2F2F2F;
    text-transform: uppercase;
}

nav ul a:hover {
    color: #B89D87;
}


/* Search & Profile */

.nav-icons {
    display: flex;
    gap: 30px;
}

.nav-icons a {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
}
nav a:hover {
    color: #B89D87;
}
/* SVG Icons */

.nav-icons svg {
    width: 22px;
    height: 22px;
    stroke: #2F2F2F;
    transition: 0.3s ease;
}

.nav-icons a:hover svg {
    stroke: #B89D87;
}








/* ==========================================================================
   1. GLOBAL & CONTAINER STYLES
   ========================================================================== */
:root {
  --bg-warm-white: #FBF9F6;
  --text-dark: #2B2825;
  --text-muted: #726C66;
  --heading-accent: #3D3731;
  --border-light: #E2DDD7;
  --button-bg: #AE9B89;
  --button-text: #FFFFFF;
  --font-serif: "Cormorant Garamond", Georgia, serif; /* Updated to match your HTML link */
  --font-sans: "Inter", "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--bg-warm-white);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  overflow-x: hidden; /* Prevents any accidental horizontal scrollbars */
}

/* Page wrapper keeps top sections centered */
.contact-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 0 20px;
  box-sizing: border-box;
}


/* ==========================================================================
   2. CONTACT HERO SECTION
   ========================================================================== */
.contact-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
}

/* Positioned text slightly left with natural 2-line description */
.contact-hero-text {
  flex: 1;
  padding-left: 10px;
  padding-right: 20px;
}

.contact-hero-text h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--heading-accent);
  margin: 0 0 20px 0;
}

.contact-hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 380px; /* Clean 2-line stretch */
}

/* Square ratio image container */
.contact-hero-image {
  flex: 0 0 480px;
  height: 480px;
  position: relative;
  overflow: hidden;
}

.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   3. CONTACT DETAILS SECTION (Outer Thin Box + Bold Headings)
   ========================================================================== */
.contact-details {
  display: flex;
  border: 1px solid var(--border-light); /* Enclosing outer thin box */
  background-color: #FAF8F5;
  margin-bottom: 60px;
  box-sizing: border-box;
}

/* Left Box: Form */
.contact-form-box {
  flex: 1;
  padding: 50px 45px 50px 50px;
}

/* Right Box: Info (Separator line sits precisely in the middle) */
.contact-info-box {
  flex: 1;
  padding: 50px 40px 50px 55px;
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

/* Bold Headings */
.contact-form-box h2,
.contact-info-box h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600; /* Bold weight */
  color: var(--heading-accent);
  margin: 0 0 30px 0;
}

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

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: transparent;
  border: 1px solid var(--border-light);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
  box-sizing: border-box;
  outline: none;
}

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

.contact-form-box textarea {
  height: 130px;
  resize: none;
}

.contact-form-box button {
  margin-top: 10px;
  padding: 16px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form-box button:hover {
  opacity: 0.9;
}

/* Info Items & Soft Icons */
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-item i.contact-icon-soft {
  font-size: 1.1rem;
  color: #726C66;
  opacity: 0.75;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.contact-item:hover i.contact-icon-soft {
  color: var(--text-dark);
  opacity: 1;
}

/* Clickable Links with Hover Effect */
.contact-item a.contact-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.contact-item a.contact-link:hover {
  color: var(--button-bg); /* Style guide taupe hover */
}

.contact-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-dark);
}


/* ==========================================================================
   4. CLOSING IMAGE SECTION (Flush against Footer)
   ========================================================================== */
.contact-closing {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
  margin-bottom: 0 !important; /* Eliminates any space below section */
  padding: 0;
  display: block;
  line-height: 0;             /* Prevents inline whitespace gap under image */
}

.contact-closing img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center center;
  display: block;             /* Ensures image touches container bottom */
  margin: 0;
  padding: 0;
}



/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES (Sits at the very bottom to control all elements)
   ========================================================================== */

/* TABLETS (Max-width: 992px) */
@media (max-width: 992px) {
  .container {
    padding: 0 40px;
  }

  .contact-hero {
    gap: 20px;
    margin-bottom: 50px;
  }

  .contact-hero-image {
    flex: 0 0 380px;
    height: 380px;
  }

  .contact-hero-text h1 {
    font-size: 2.6rem;
  }

  .contact-form-box {
    padding: 40px 30px;
  }

  .contact-info-box {
    padding: 40px 30px;
  }
}

/* MOBILE DEVICES (Smartphones / iPhones / Android) (Max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Responsive Header Navigation */
  header {
    height: auto;
    padding-top: 10px;
  }

  nav {
    flex-direction: column;
    gap: 15px;
    transform: none;
    text-align: center;
  }

  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo a {
    font-size: 38px;
  }

  .contact-page {
    margin-top: 20px;
    padding: 20px 16px 0 16px;
  }

  /* Stack hero section vertically */
  .contact-hero {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 40px;
  }

  .contact-hero-text {
    padding: 0;
  }

  .contact-hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .contact-hero-text p {
    max-width: 100%;
  }

  .contact-hero-image {
    flex: none;
    width: 100%;
    height: 300px;
  }

  /* Stack form on top of info box */
  .contact-details {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .contact-form-box {
    padding: 30px 20px;
  }

  .contact-info-box {
    padding: 30px 20px;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }

  .contact-form-box h2,
  .contact-info-box h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .contact-form-box input,
  .contact-form-box textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .contact-form-box button {
    padding: 14px;
    width: 100%;
  }

  .contact-closing img {
    max-height: 260px;
  }

  /* Footer Mobile Adjustments */
  footer {
    padding: 60px 20px 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  /* Popup Mobile Adjustments */
  .newsletter-content {
    padding: 40px 24px;
  }

  .newsletter-content h2 {
    font-size: 34px;
  }
}

/* EXTRA SMALL MOBILE SCREENS (Max-width: 480px) */
@media (max-width: 480px) {
  .contact-hero-image {
    height: 240px;
  }

  .contact-hero-text h1 {
    font-size: 1.8rem;
  }

  .contact-item {
    gap: 14px;
  }
}



/* Footer Social Icons */

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pinterest */
.social-icons a:nth-child(1) svg {
    fill: #E60023;
}

/* Instagram */
.social-icons a:nth-child(2) svg {
    color: #C13584;
}

/* YouTube */
.social-icons a:nth-child(3) svg {
    color: #FF0000;
}

/* Hover */

.social-icons a:hover svg {
    transform: scale(1.12);
    opacity: 0.8;
}
/* ===================================
   Footer
=================================== */

footer {
    background-color: #2F2F2F;
    padding: 90px 0 50px;
    margin-top: 80px;
    text-align: center;
}


/* Footer Logo */

.footer-logo h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #FAF8F5;
    margin-bottom: 10px;
}

.footer-logo p {
    max-width: 380px;
    margin: 0 auto;

    font-family: "Lora", serif;
    font-size: 14px;
    line-height: 1.7;
    color: #D8D2C8;
}


/* Footer Links */

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 30px 0;
}

.footer-links a {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #FAF8F5;

    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #B89D87;
}


/* Social */

.footer-social p {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D8D2C8;
}


/* Social Icons */

.social-icons {
    justify-content: center;
}


/* Copyright */

.copyright {
    margin-top: 30px;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #B8B1A8;
}



/* ===================================
   Newsletter Popup
=================================== */

.newsletter-popup {

    position: fixed;
    inset: 0;

    background: rgba(47,47,47,0.45);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;

    z-index: 9999;
}

/* Active State */

.newsletter-popup.active {

    opacity: 1;
    visibility: visible;

}

/* Popup Card */

.newsletter-content {

    position: relative;

    width: 90%;
    max-width: 520px;

    background: #FAF8F5;

    border-radius: 10px;

    padding: 55px 50px;

    text-align: center;

    box-shadow: 0 25px 60px rgba(0,0,0,0.18);

    transform: translateY(20px);

    transition: transform .35s ease;

}

.newsletter-popup.active .newsletter-content {

    transform: translateY(0);

}

/* Logo */

.newsletter-logo img{

    width:90px;

    margin:0 auto 22px;

}

/* Tagline */

.newsletter-tagline{

    font-family:"Inter",sans-serif;

    font-size:12px;

    letter-spacing:.25em;

    text-transform:uppercase;

    color:#B89D87;

    margin-bottom:18px;

}

/* Title */

.newsletter-content h2{

    font-family:"Cormorant Garamond",serif;

    font-size:46px;

    font-weight:400;

    color:#2F2F2F;

    margin-bottom:18px;

}

/* Description */

.newsletter-text{

    font-family:"Lora",serif;

    font-size:16px;

    line-height:1.8;

    color:#6E675F;

    margin-bottom:35px;

}

/* Email */

.newsletter-form input{

    width:100%;

    padding:16px 18px;

    border:1px solid #D8D2C8;

    background:#FFFFFF;

    font-family:"Inter",sans-serif;

    font-size:14px;

    margin-bottom:18px;

    outline:none;

}

.newsletter-form input:focus{

    border-color:#B89D87;

}

/* Button */

.newsletter-form button{

    width:100%;

    height:56px;

    border:none;

    background:#A98A70;

    color:#FFFFFF;

    font-family:"Inter",sans-serif;

    font-size:13px;

    font-weight:600;

    letter-spacing:.18em;

    text-transform:uppercase;

    cursor:pointer;

    transition:.3s ease;

}

.newsletter-form button:hover{

    background:#947761;

}

/* Bottom Note */

.newsletter-note{

    margin-top:22px;

    font-family:"Inter",sans-serif;

    font-size:12px;

    color:#8A837A;

}

/* Close */

.close-popup{

    position:absolute;

    top:18px;

    right:20px;

    border:none;

    background:none;

    font-size:30px;

    cursor:pointer;

    color:#B89D87;

    transition:.3s ease;

}

.close-popup:hover{

    color:#2F2F2F;

}