/* ==========================================================================
   Chettinad Treats — Kanadukathan Palace inspired theme
   Color palette derived from the palace facade:
     - Cream walls            #FFF9F2
     - Deep maroon trim       #7A1414
     - Burnt-brick red        #A0341B
     - Royal blue windows     #1F3A5F
     - Heritage green canopy  #2D5F3F
     - Gold ornament          #D4AF37
     - Off-white              #FAF6EE
   ========================================================================== */

:root {
    --c-cream:    #FFF9F2;
    --c-cream-2:  #FAF6EE;
    --c-maroon:   #7A1414;
    --c-maroon-d: #5A0E0E;
    --c-red:      #A0341B;
    --c-blue:     #1F3A5F;
    --c-green:    #2D5F3F;
    --c-gold:     #D4AF37;
    --c-text:     #2A1A12;
    --c-muted:    #6e5b50;
    --c-line:     #e7dcc9;

    --shadow-soft: 0 6px 20px rgba(122, 20, 20, 0.10);
    --shadow-deep: 0 12px 30px rgba(0,0,0,0.15);

    --radius: 10px;
    --radius-lg: 16px;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body:  'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-cream);
    line-height: 1.6;
}
a { color: var(--c-maroon); text-decoration: none; }
a:hover { color: var(--c-red); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============== Decorative palace stripe ============== */
.palace-stripe { display:flex; height:8px; width:100%; }
.palace-stripe .stripe { flex: 1; }
.stripe-cream  { background: var(--c-cream-2); }
.stripe-maroon { background: var(--c-maroon);  }
.stripe-gold   { background: var(--c-gold);    }
.stripe-green  { background: var(--c-green);   }
.stripe-blue   { background: var(--c-blue);    }

/* ============== Top bar ============== */
.top-bar {
    background: var(--c-maroon);
    color: #fff8e3;
    font-size: 13px;
}
.top-bar-inner {
    display:flex; justify-content: space-between; padding: 8px 20px; flex-wrap: wrap;
}
.hide-sm { display: inline; }

/* ============== Header ============== */
.site-header {
    background: var(--c-cream);
    border-bottom: 2px solid var(--c-line);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-soft);
}
.header-inner {
    display:flex; align-items:center; justify-content:space-between;
    padding: 14px 20px; gap: 20px;
}
.logo {
    display:flex; align-items:center; gap:12px; color: var(--c-maroon);
}
.logo-mark { background: var(--c-cream-2); padding:6px; border-radius: 50%; width: 200px;
}
.logo-title {
    font-family: var(--font-serif);
    font-size: 26px; font-weight: 700; color: var(--c-maroon);
    line-height: 1; display:block;
}
.logo-tag { font-size: 11px; letter-spacing: 2px; color: var(--c-muted); text-transform: uppercase; }

.main-nav { display:flex; gap: 4px; align-items:center; flex-wrap: wrap; }
.main-nav a {
    padding: 8px 14px; font-weight:700; color: var(--c-text);
    border-radius: 6px; transition: all .25s;
    font-size: 17px;
}
.main-nav a:hover { background: var(--c-maroon); color:#fff; }
.cart-link {
    background: var(--c-gold); color: var(--c-maroon-d) !important;
    font-weight: 600;
}

.cart-link:hover { background: var(--c-maroon) !important; color:#fff !important; }
.cart-count {
    display:inline-block; min-width: 22px; padding: 0 6px;
    background: var(--c-maroon); color:#fff; border-radius: 999px;
    font-size: 12px; text-align:center;
}
.nav-toggle {
    display:none; background: var(--c-maroon); color:#fff; border:none;
    width: 42px; height: 42px; font-size: 22px; border-radius: 6px; cursor:pointer;
}

/* ============== Flash messages ============== */
.flash {
    margin: 16px auto; padding: 12px 18px; border-radius: var(--radius);
    border-left: 5px solid;
    font-size: 14px;
}
.flash-success { background: #eaf6ec; border-color: var(--c-green); color: #1d3f2a; }
.flash-error   { background: #fce8e3; border-color: var(--c-red);   color: var(--c-maroon-d); }

/* ============== Hero / Slideshow ============== */
.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--c-maroon);
}
.hero-slides {
    position: absolute; inset: 0;
}
.hero-slide {
    position: absolute; inset: 0; opacity: 0;
    background-size: cover; background-position: center;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.6) 100%);
    display:flex; align-items:center; justify-content:center;
    text-align:center; color:#fff; padding: 20px;
}
.hero-content { max-width: 900px; }
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px); font-weight: 700;
    line-height: 1.1; margin: 0 0 16px;
    text-shadow: 0 3px 18px rgba(0,0,0,0.5);
}
.hero-content h1 span { color: var(--c-gold); }
.hero-content p {
    font-size: clamp(16px, 1.6vw, 20px);
    margin: 0 0 28px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-cta { display:flex; gap: 14px; justify-content:center; flex-wrap:wrap; }

/* ============== Buttons ============== */
.btn {
    display:inline-block; padding: 12px 26px;
    background: var(--c-maroon); color:#fff;
    border:none; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 500; font-size: 15px;
    cursor:pointer; transition: all .25s;
    text-decoration: none;
}
.btn:hover { background: var(--c-maroon-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-gold   { background: var(--c-gold); color: var(--c-maroon-d); }
.btn-gold:hover { background: #b8962d; color: var(--c-maroon-d); }
.btn-green  { background: var(--c-green); }
.btn-blue   { background: var(--c-blue);  }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--c-maroon); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display:block; width:100%; text-align:center; }
.btn-danger { background: #b34a2f; }

/* ============== Section helpers ============== */
.section { padding: 70px 0; }
.section-light { background: var(--c-cream-2); }
.section-title { text-align:center; margin: 0 0 12px; }
.section-title h2 {
    font-family: var(--font-serif); font-size: clamp(28px,4vw,44px);
    color: var(--c-maroon); margin: 0;
}
.section-title .sub { color: var(--c-muted); margin: 0 0 30px; }
.divider-ornament {
    width: 140px; height: 24px; margin: 8px auto 26px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 24'><path d='M0 12 H50' stroke='%237A1414' stroke-width='1.5'/><path d='M90 12 H140' stroke='%237A1414' stroke-width='1.5'/><circle cx='70' cy='12' r='5' fill='%23D4AF37'/><circle cx='60' cy='12' r='2' fill='%237A1414'/><circle cx='80' cy='12' r='2' fill='%237A1414'/></svg>") center/contain no-repeat;
}

/* ============== Card grid (categories, products, tours) ============== */
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-soft);
    transition: transform .3s, box-shadow .3s;
    display:flex; flex-direction:column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--c-maroon), var(--c-red));
    background-size: cover; background-position: top !important;
    position: relative;
}
.card-img::after {
    content:''; position:absolute; left:0; right:0; bottom:0; height: 6px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-maroon), var(--c-green));
}

.card-img-offer {
    height: 350px;
    background: linear-gradient(135deg, var(--c-maroon), var(--c-red));
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img-offer::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-maroon), var(--c-green));
}
.card-body { padding: 20px; flex:1; display:flex; flex-direction:column; }
.card-title {
    font-family: var(--font-serif); font-size: 22px;
    color: var(--c-maroon); margin: 0 0 8px;
}
.card-desc { color: var(--c-muted); font-size: 14px; flex:1; }
.card-meta {
    margin-top: 12px; display:flex; align-items:center; justify-content:space-between;
}
.price { font-size: 20px; font-weight: 600; color: var(--c-green); }
.weight { font-size: 12px; color: var(--c-muted); }

/* Heritage product badge */
.badge {
    display:inline-block; font-size: 11px; padding: 3px 10px;
    background: var(--c-gold); color: var(--c-maroon-d);
    border-radius: 999px; font-weight: 600; letter-spacing: .5px;
}

/* ============== Operating process strip ============== */
.process {
    background: linear-gradient(135deg, var(--c-cream-2), #fff);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 30px 0;
}
.process h3 {
    font-family: var(--font-serif); color: var(--c-maroon); text-align:center;
    font-size: 26px; margin: 0 0 24px;
}
.process-steps {
    display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.process-step {
    text-align:center; padding: 20px 14px;
    background: #fff; border-radius: var(--radius);
    border-top: 4px solid var(--c-gold);
    box-shadow: var(--shadow-soft);
}
.process-step .num {
    display:inline-flex; align-items:center; justify-content:center;
    width: 44px; height: 44px; border-radius:50%;
    background: var(--c-maroon); color: #fff; font-weight: 700;
    font-family: var(--font-serif); font-size: 22px; margin-bottom: 12px;
}
.process-step h4 { margin: 0 0 6px; color: var(--c-maroon); font-size: 16px; }
.process-step p  { margin: 0; font-size: 13px; color: var(--c-muted); }
.empowerment-note {
    margin-top: 22px; text-align: center;
    color: var(--c-maroon); font-style: italic;
    font-family: var(--font-serif); font-size: 18px;
}

/* ============== Forms ============== */
.form-card {
    background: #fff; padding: 30px; border-radius: var(--radius-lg);
    border: 1px solid var(--c-line); box-shadow: var(--shadow-soft);
}
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display:block; font-weight: 500; margin-bottom: 6px;
    font-size: 14px; color: var(--c-maroon);
}
.form-group .req { color: var(--c-red); }
.form-control {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--c-line); border-radius: 8px;
    font-family: var(--font-body); font-size: 14px;
    background: var(--c-cream);
}
.form-control:focus {
    outline: none; border-color: var(--c-maroon);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(122,20,20,0.1);
}
textarea.form-control { min-height: 110px; resize: vertical; }

/* ============== Tables ============== */
table.tbl {
    width:100%; border-collapse: collapse; background: #fff;
    border-radius: var(--radius-lg); overflow:hidden;
    box-shadow: var(--shadow-soft);
}
.tbl th, .tbl td { padding: 12px 14px; text-align:left; border-bottom: 1px solid var(--c-line); }
.tbl th { background: var(--c-maroon); color:#fff; font-weight: 500; font-size: 13px; letter-spacing:.5px; text-transform: uppercase; }
.tbl tr:last-child td { border-bottom:none; }
.tbl tr:hover td { background: var(--c-cream); }

/* ============== Payment options strip ============== */
.payment-options {
    display:flex; gap:12px; flex-wrap: wrap; margin: 12px 0 4px;
}
.pay-opt {
    flex:1; min-width: 140px;
    padding: 14px; border: 2px solid var(--c-line);
    border-radius: var(--radius); text-align:center; cursor:pointer;
    background:#fff; transition: all .2s;
}
.pay-opt input { display:none; }
.pay-opt:hover { border-color: var(--c-gold); }
.pay-opt.selected { border-color: var(--c-maroon); background: var(--c-cream); }
.pay-opt .pay-name { font-weight:600; color: var(--c-maroon); display:block; margin-top:4px; }
.pay-note {
    margin: 12px 0 0; font-size: 13px; color: var(--c-muted);
    background: #fff8e3; padding: 10px 14px; border-left: 4px solid var(--c-gold);
    border-radius: 6px;
}

/* ============== Cart ============== */
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.qty-input { width: 70px; text-align:center; }

/* ============== Tours detail ============== */
.tour-detail {
    background:#fff; border-radius: var(--radius-lg);
    overflow:hidden; box-shadow: var(--shadow-soft);
    border: 1px solid var(--c-line);
}
.tour-hero {
    height: 320px; background: var(--c-blue);
    background-size: cover; background-position: center;
    position: relative;
}
.tour-hero::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
}
.tour-hero h1 {
    position: absolute; bottom: 24px; left: 30px; right: 30px;
    color:#fff; margin:0; font-family: var(--font-serif);
    font-size: 40px; z-index:2;
    text-shadow: 0 3px 12px rgba(0,0,0,.7);
}
.distance-pills { display:flex; gap: 12px; flex-wrap:wrap; margin: 10px 0; }
.pill {
    background: var(--c-cream-2); border: 1px solid var(--c-line);
    padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--c-maroon);
}

/* ============== Feedback ============== */
.review-card {
    background: #fff; padding: 22px; border-radius: var(--radius);
    border-left: 4px solid var(--c-gold);
    box-shadow: var(--shadow-soft);
}
.stars { color: var(--c-gold); font-size: 18px; }

/* ============== Footer ============== */
.site-footer {
    background: linear-gradient(180deg, #3a0a0a, var(--c-maroon-d));
    color: #f6e7c8;
    margin-top: 60px;
}
.site-footer h4 {
    color: var(--c-gold); font-family: var(--font-serif);
    font-size: 22px; margin: 0 0 14px;
}
.footer-grid {
    display:grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px;
    padding: 50px 20px 30px;
}
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #f6e7c8; }
.footer-links a:hover { color: var(--c-gold); }
.copyright {
    text-align:center; padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 13px;
}

/* ============== WhatsApp float ============== */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 80;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; display:flex; align-items:center; justify-content:center;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    animation: pulse-wa 2.2s infinite;
}
@keyframes pulse-wa {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============== Order success ============== */
.success-card {
    background: #fff; padding: 40px; text-align:center;
    border-radius: var(--radius-lg);
    border-top: 6px solid var(--c-green);
    box-shadow: var(--shadow-soft);
    max-width: 700px; margin: 0 auto;
}
.success-card .tick {
    width: 80px; height: 80px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--c-green); color: #fff;
    display:flex; align-items:center; justify-content:center;
    font-size: 42px;
}

/* ============== Responsive ============== */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .hide-sm { display:none; }
    .nav-toggle { display:inline-flex; align-items:center; justify-content:center; }
    .main-nav {
        position: absolute; top: 100%; left:0; right:0;
        flex-direction: column; align-items: stretch;
        background: var(--c-cream); padding: 12px;
        border-top: 1px solid var(--c-line);
        box-shadow: var(--shadow-deep);
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 14px; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .hero { height: 460px; }
    .tour-hero h1 { font-size: 28px; }
}

@media (min-width: 720px) {
.cart-link-hide {
    display:none;
}
}

@media (max-width: 450px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FEEDBACK CAROUSEL (shared: home + feedback pages)
   ========================================================= */
.fb-section { margin-top: 30px; }
.fb-section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.fb-section-head h3 {
    font-family: var(--font-serif);
    color: var(--c-maroon);
    font-size: 26px;
    margin: 0;
}

/* Arrow buttons — always pinned to the right even when there is no heading */
.fb-nav { display: flex; gap: 10px; margin-left: auto; }
.fb-arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--c-gold);
    background: #fff;
    color: var(--c-maroon);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.fb-arrow:hover:not(:disabled) {
    background: var(--c-maroon);
    color: #fff;
    transform: scale(1.05);
}
.fb-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* Viewport + track (page-based slider) */
.fb-viewport { overflow: hidden; position: relative; }
.fb-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}
.fb-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 8px 2px;
}
.fb-card-empty { visibility: hidden; }

/* Card */
.fb-card {
    background: #fff;
    border: 1px solid var(--c-line, #e8d9c0);
    border-radius: 14px;
    padding: 22px 22px 18px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex; flex-direction: column;
}
.fb-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 1;
    color: var(--c-gold);
    position: absolute;
    top: 8px; right: 18px;
    opacity: 0.6;
}
.fb-card .dept-pill {
    display: inline-block;
    background: #fff9f2;
    color: var(--c-maroon);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    align-self: flex-start;
}
.fb-card .fb-msg {
    margin: 0 0 14px;
    font-style: italic;
    color: #4a4036;
    line-height: 1.6;
    font-size: 15px;
    flex: 1;
}
.fb-card .fb-name {
    margin: 0;
    font-weight: 700;
    color: var(--c-maroon);
    font-family: var(--font-serif);
    font-size: 17px;
}

/* Dot indicators */
.fb-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.fb-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e8d9c0;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.fb-dot:hover { background: #c9a876; }
.fb-dot.active { background: var(--c-maroon); transform: scale(1.3); }

/* Responsive — 2 cards per page on tablet, 1 on phone */
@media (max-width: 900px) {
    .fb-page { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .fb-page { grid-template-columns: 1fr; }
    .fb-section-head h3 { font-size: 22px; }
}

/* ============================================================
   reCAPTCHA v3 badge (contact page)
   Google pins the badge to bottom-right, exactly where the
   WhatsApp float sits — lift it clear of that button.
   The attribution text under the contact form satisfies
   Google's notice requirement for moving the badge.
   ============================================================ */
.grecaptcha-badge {
    bottom: 96px !important;
    z-index: 79;  /* just under .whatsapp-float (80) */
}

@media (max-width: 600px) {
    /* The badge tray is wider than a small phone — keep it tucked in. */
    .grecaptcha-badge { bottom: 92px !important; }
}


/* Added on 21-08-26 */

@media (max-width: 767px) {
    form .plan-btn {
        margin-left: 0 !important;
        margin-top: 12px;
    }
}