:root {
    --primary: #1a4331;
    --muted: #9ca3af;
    --hover: #4b5563;
    --border: #e5e7eb;
}

body {
    font-family: "Playfair Display", serif;
}

.mainbg {
    background: #F3F5F2;
}


/* ================= NAVBAR ================= */
/* Header */
:root {
    --primary: #1a4331;
    /* Dark Forest Green from image */
    --muted: #8e8e8e;
    /* Grey for inactive links */
    --border: #e0e0e0;
    --font-serif: 'Georgia', serif;
    /* Matching the serif style in image */
}

.novelle-navbar {
    background: #F8FAFC;
    border-bottom: 1px solid #f0f0f0;
    /* padding: 0.5rem 0; */
    font-family: var(--font-serif);
     padding-top: 0px;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 70px;
  width: 50px;
  

}

/* Nav links styling */
.novelle-navbar .nav-link {
    color: #8F8F8F;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0.5rem 0;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.novelle-navbar .nav-link:hover {
    color: var(--primary);
}

.novelle-navbar .nav-link.active {
    color: var(--primary) !important;
}

/* The exact underline from the image */
.novelle-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.novelle-navbar .nav-link.active::after {
    width: 100%;
}

/* Dropdown styling */
.dropdown-toggle::after {
    display: none;
    /* Removing the arrow to match image simplicity */
}

/* Button Styles */
.btn-novelle {
    background-color: var(--primary);
    color: #fff;
    /* padding: 10px 30px; */
    border-radius: 4px;
    border: 1px solid var(--primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-novelle:hover {
    background-color: #123023;
    color: #fff;
}

.btn-outline-novelle {
    background: transparent;
    color: var(--muted);
    /* padding: 10px 30px; */
    border-radius: 4px;
    border: 1px solid #cccccc;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline-novelle:hover {
    background-color: #f8f9fa;
    border-color: var(--muted);
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .novelle-navbar .nav-link::after {
        display: none;
        /* Hide underline on mobile for cleaner look */
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        border-bottom: 1px solid #f8f9fa;
    }
}


/* ================= FOOTER ================= */
/* Footer Container */
.novelle-footer {
    background: linear-gradient(135deg, #1f4d3a  0%, #0f2818 100%);
    color: #ffffff;
    padding-top: 40px;
    padding-bottom: 10px;
    padding-left: 50px;
    padding-right: 60px;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

/* Footer Column Styling */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Brand Column */
.footer-brand {
    gap: 20px;
}

.footer-logo {
    width: 105px;
    height: 145px;
    object-fit: contain;
}

.footer-brand-title {
    font-family: 'Algerian';
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 100%;
    font-style: regular;
    color: #ffffff;
}

.footer-brand-text {
    font-family: 'lora' serif;
    font-size: 18px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.85);
    font-style: regular;
    font-weight: 400;
}

/* Section Headings */
/* Section Headings */
.footer-section-heading {
    font-family: 'lora', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 150%;
    font-style: semibold;
}

/* Footer Links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  margin-left: 0;
}


.footer-links li {
  margin-left: 0;
  padding-left: 0;
}

.footer-links a {
    font-family: 'lora';
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    font-style: regular;
    transition: opacity 0.3s ease;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0%;

}

.footer-links a:hover {
    opacity: 0.7;
}

/* Social Icons Container */
.footer-social-container {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 32px;
    align-items: center;
}

.social-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    opacity: 0.7;
}

/* Footer Divider */
.footer-divider {
    width: 1250px;
    align-items: center;
    height: 3px;
    background-color: #3e3e3e;
    /* margin: 40px auto; */
}




/* Copyright Section */
.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px and below)
   ============================================ */

@media (max-width: 768px) {
  .novelle-footer {
    padding-top: 60px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    padding-bottom: 10px;
  }

  .footer-social-container {
    position: static;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    width: 100%;
    grid-column: 1 / -1;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .footer-section-heading {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .footer-links a {
    font-size: 15px;
  }

  .social-link {
    font-size: 20px;
  }

  .footer-divider {
    width: 80%;
    height: 3px;
    margin: 25px auto;
  }
}

@media (max-width: 480px) {
  .novelle-footer {
    padding-top: 50px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-wrapper {
    gap: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 10px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-logo {
    width: 100px;
  }

  .footer-brand-title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .footer-brand-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-section-heading {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-social-container {
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }

  .social-link {
    font-size: 18px;
  }

  .footer-divider {
    width: 90%;
    height: 2.5px;
    margin: 20px auto;
  }


  .footer-copyright p {
    font-size: 14px;
  }
}

@media (min-width: 800px) and (max-width: 1050px) {
  .footer-divider {
    width: 90%;      
    max-width: 700px; 
    height: 3px;
    margin: 25px auto;
  }
}

@media (min-width: 850px) and (max-width: 1070px) {
  .footer-divider {
    width: 85%;         
    max-width: 650px;   
    height: 3px;       
    margin: 25px auto;  
  }
}


/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */

a {
    text-decoration: none;
}

.bi {
    display: inline-block;
}

/* Print Styles */
@media print {
    .novelle-footer {
        page-break-inside: avoid;
    }
}

/* ================= HERO SECTION ================= */
.hero-section {
    padding: 2rem 0;
    background-color: #f3f2ee;
    position: relative;
}

/* Balanced side padding */
.hero-container {
    padding-left: 3.5rem;
    /* 24px */
    padding-right: 3.5rem;
    /* 24px */
}

/* Background blob */
.hero-blob {
    content: '';
    position: absolute;
    width: 347px;
    height: 328px;
    left: -34px;
    top: 63px;
    background: #EDE0D4;
    border-radius: 180px 260px 210px 240px / 270px 200px 250px 220px;
    z-index: 0;
    transform: rotate(17deg);
}

/* Text */
.hero-title {
    font-family: "Playfair Display", serif;
    letter-spacing: 0%;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1;
    font-weight: 600;
}


.hero-subtitle {
    font-family: "Lora", serif;
    line-height: 1.5;
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 500;
    color: #1E293B;
}


/* Image */
.hero-img-container img {
    max-width: 100%;
    height: auto;
    transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .hero-subtitle {
        white-space: normal;
        text-align: center;
        color: rgb(83, 82, 82);
    }

    .hero-section {
        padding: 1.75rem 0;
    }

    .hero-container {
        padding-left: 2.5rem;
        /* 16px */
        padding-right: 2.5rem;
        /* 16px */
    }

    .hero-img-container img {
        transform: scale(1);
    }
}

/* ================= CONTAINER ALIGNMENT ================= */
.contact-container {
    padding-left: 1.5rem;
    /* MATCHES HERO SECTION */
    padding-right: 1.5rem;
}

/* ================= CONTAINER ALIGNMENT ================= */
.contact-container {
    padding-left: 3.5rem;
    /* MATCHED */
    padding-right: 3.5rem;
    /* MATCHED */
}

/* ================= FORM & SIDEBAR ================= */
.contact-card {
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    /* slightly darker */
    font-family: serif;
}

.form-title {
    font-family: "Playfair Display", serif;
    color: #111;
}

.custom-input {
    background-color: var(--input-bg);
    border: none;
    padding: 1rem 1.2rem;
    border-radius: 0.3rem;
    font-family: sans-serif;
}

.custom-input:focus {
    box-shadow: 0 0 0 2px var(--novelle-green);
    outline: none;
}

.tracking-wider {
    letter-spacing: 0.12em;
}

.text-dark-blue {
    color: var(--text-dark-blue);
}

.text-orange {
    color: var(--orange-icon);
}

.btn-novelle-dark {
    background-color: var(--novelle-green);
    color: #fff;
    border-radius: 4px;
    font-family: "Playfair Display", serif;
    transition: all 0.3s ease;
}

.btn-novelle-dark:hover {
    background-color: #143527;
    transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991.98px) {
    .contact-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .contact-card {
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    }

    .form-title {
        font-size: 2.5rem;
    }
}

/* Button styling */
.join-btn {
    display: inline-block;
    font-family: serif;
    background-color: #166534;
    /* green-800 */
    color: #ffffff;
    padding: 12px 32px;
    font-size: 1.35rem;
    /* increased from 1rem */
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

/* Hover effect */
.join-btn:hover {
    background-color: #14532d;
    /* green-900 */
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .join-btn {
        font-size: 1rem;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .join-btn {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 12px;
    }
}

.subcardheading {
    font-size: 24px;
    font-family: 'lora', serif;
    font-weight: 500;
    line-height: 150%;
}

.subcardheadingtitle {
    font-size: 18px;
    color: #545454;
    font-style: regular;
    font-family: 'lora', serif;
    font-weight: 400;
    line-height: 150%;
}

/* Form container general styles */
/* Row and spacing */
#contactForm .row.g-4 {
    margin-bottom: 1.5rem;
}

/* Labels styling */
#contactForm label.form-label {
    display: block;
    font-weight: 700;
    /* bold */
    font-size: 1.1rem;
    /* fs-5 approx */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: #222;
}

/* Inputs and textarea */
#contactForm .custom-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    background-color: #ebe8e8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

/* Input/textarea focus */
#contactForm .custom-input:focus {
    border-color: #234931;
    /* dark green */
    box-shadow: 0 0 8px rgba(35, 73, 49, 0.4);
    outline: none;
}

/* Button styling */
#contactForm .join-btn {
    background-color: #234931;
    color: #fff;
    border: none;
    padding: 0.6rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button hover */
#contactForm .join-btn:hover {
    background-color: #1b3a29;
}

/* Text alignment for button */
#contactForm .text-end {
    text-align: right;
}

/* Responsive for small devices */
@media (max-width: 767.98px) {
    #contactForm {
        padding: 1.5rem 1rem;
    }

    #contactForm .text-end {
        text-align: center;
        margin-top: 1rem;
    }

    /* Make columns stack on small screens */
    #contactForm .row.g-4>div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ================= JOIN COMMUNITY MODAL ================= */
/* ================= OVERLAY ================= */
/* ================= OVERLAY ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 39, 39, 0.914);
    display: none;
    justify-content: center;
    align-items: flex-start;
    /* ⬅ move down */
    padding: 60px 5px 5px;
    /* ⬅ top space */
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal-overlay.show .modal-content {
    transform: translateY(40px);
}


/* ================= MODAL ================= */
.modal-content {
    background: #fff;
    width: 100%;
    max-height: 78vh;
    /* ✅ reduced height */
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.modal-compact {
    max-width: 620px;
    /* ✅ reduced width */
}

/* ================= CLOSE ================= */
.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    z-index: 2;
}

/* ================= SCROLL CONTAINER ================= */
.modal-scroll-container {
    overflow-y: auto;
    padding: 1.4rem 2rem 1rem;
    flex: 1;
}

/* Scrollbar (optional polish) */
.modal-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ================= HEADER ================= */
/* ================= MODAL HEADER ================= */
.modal-header {
    display: flex;
    /* ⬅ puts h2 & subtitle inline */
    align-items: baseline;
    /* text alignment like image */
    gap: 0.8rem;
    /* spacing between title & subtitle */
    flex-wrap: wrap;
    /* responsive wrap */
    margin-bottom: 1.2rem;
}

/* Title */
.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    /* slightly reduced */
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    /* stay on one line (desktop) */
}

/* Subtitle */
.modal-header .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #292828;
    margin: 0;
    white-space: nowrap;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        /* ⬅ stack on small screens */
        align-items: flex-start;
        gap: 0.3rem;
    }

    .modal-header h2 {
        font-size: 1.6rem;
        white-space: normal;
    }

    .modal-header .subtitle {
        font-size: 0.95rem;
        white-space: normal;
    }
}


/* ================= FORM ================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.4rem;
}

.field-group {
    margin-bottom: 1rem;
}

label {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    display: block;
}

.instruction {
    font-size: 0.95rem;
    color: #292828;
    margin-bottom: 0.8rem;
}

/* Inputs */
.input-field {
    width: 100%;
    background: #f5f6f3;
    border: none;
     padding: 0.5rem;
    font-size: 0.95rem;
    border-radius: 2px;
    outline: none;
    color: #444;
}

/* Select arrow */
.select-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* ================= FOOTER ================= */
.form-footer {
    /* padding: 1.2rem 2.6rem; */
    padding-top: 13px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    background: #1a4332;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 3px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .modal-compact {
        max-width: 96%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-scroll-container {
        padding: 1.6rem 1.4rem;
    }

    .form-footer {
        padding: 1rem 1.4rem;
    }

    .btn-submit {
        width: 100%;
    }
}

.cta-btn {
    display: inline-block;
    font-family: serif;
    background-color: #166534;
    /* green-800 */
    color: #ffffff;
    padding: 12px 32px;
    font-size: 1.25rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.cta-btn:hover {
    background-color: #14532d;
    /* green-900 */
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-btn {
        font-size: 1rem;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .cta-btn {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 12px;
    }
}

.input-field.invalid {
    border: 1px solid #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    display: none;
}

.input-field.invalid + .error-message {
    display: block;
}


.toaster {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toaster-message {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.toaster-message.show {
    opacity: 1;
    transform: translateX(0);
}

.toaster-message.success {
    background-color: #28a745;
}

.toaster-message.error {
    background-color: #dc3545;
}



.input-field.invalid {
    border: 1px solid #ff4d4d !important;
    background-color: #fffafa;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none; 
}

.input-field.invalid + .error-message {
    display: block;
}

.toaster {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toaster-message {
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toaster-message.success { background-color: #00c851; }
.toaster-message.error { background-color: #dc3545; }

.toaster-message.show {
    opacity: 1;
    transform: translateX(0);
}

/* Join community css */

/* Highlight invalid input */
.input-field.error {
  border: 1.5px solid #dc3545;
  background: #fff5f5;
}

/* Error message style */
.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 4px;
}