/* ==========================================================================
   Samridhi Air Express — landing page styles
   Layout and styling follow the agreed reference design:
   navy header, cream page, gold accents, serif headings.
   ========================================================================== */

/* ---------- Colour and font variables ----------
   Defining these once means a colour change happens in one place. */
:root {
    --navy:       #12284C;
    --gold:       #C9A961;
    --gold-deep:  #B8934A;
    --gold-light: #D8C089;
    --cream:      #FBF6EA;
    --body-text:  #566072;
    --card-line:  #EFE7D4;

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans:  "Lato", Arial, Helvetica, sans-serif;
}

/* ---------- Reset ----------
   Browsers add their own default margins and padding. This clears them
   so every bit of spacing on the page is one we chose deliberately. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* menu links glide to their section instead of jumping */
}

body {
    background-color: var(--cream);
    font-family: var(--sans);
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
}

/* Sections are anchor targets. This stops the fixed-height header
   from covering a section heading when you jump to it from the menu. */
section {
    scroll-margin-top: 100px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background-color: var(--navy);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 92px;
    padding: 0 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--gold);
    flex-shrink: 0;
}

.logo-mark {
    width: 46px;
    height: 46px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 2px;
}

.logo-tag {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4.2px;
    margin-top: 5px;
}

/* ---- Navigation ---- */
.main-nav ul {
    list-style: none; /* removes the bullet points a list has by default */
    display: flex;
    align-items: center;
    height: 92px;
    gap: 34px;
}

.main-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav a {
    position: relative; /* lets the gold underline below be placed against this link */
    height: 100%;
    display: flex;
    align-items: center;
    color: #F3EEE1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1.2px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--gold);
}

/* The current page gets gold text and a gold bar along the bottom of the header */
.main-nav a.active {
    color: var(--gold);
}

.main-nav a.active::after {
    content: "";          /* required for a ::after box to exist at all */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--gold);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    padding: 74px 44px 58px;
}

.hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* text column narrower than the photo column */
    gap: 58px;
    align-items: center;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 900;
    font-size: 3.15rem;
    line-height: 1.06;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--navy);
}

.hero-sub {
    margin-top: 22px;
    font-size: 1.68rem;
    font-weight: 300;
    line-height: 1.35;
    color: var(--navy);
}

/* ---- Framed photo ---- */
.hero-media {
    position: relative; /* the Get a Quote button is positioned against this box */
}

.photo-frame {
    border: 2px solid var(--gold);
    padding: 10px;
    background-color: var(--cream);
}

.photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 2.3;      /* the shape of the box the photo fills */
    object-fit: cover;      /* fills that box without squashing the photo */
    object-position: top;   /* keeps the top of the photo, trims the bottom strip
                               where the image's own slogan is printed */
    border: 2px solid var(--gold);
}

.btn-quote {
    position: absolute;
    bottom: 20px;   /* sits low over the water so it hides less of the ship */
    left: 50%;
    transform: translateX(-50%); /* shifts back by half its width so it truly centres */
    /* No background panel — the words sit straight on the photo, over the
       open water below the ship, so the whole vessel stays visible.
       clamp() gives a minimum size, a size that scales with the screen
       width, and a maximum, so the line grows and shrinks with the photo
       instead of staying one fixed size. */
    color: #FFFFFF;
    text-decoration: none;
    font-size: clamp(0.95rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    transition: color 0.2s;
    white-space: nowrap;
}

.btn-quote:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   TRACKING BAR
   ========================================================================== */
.track-section {
    padding: 8px 44px 66px;
}

.track-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--gold);
    border-radius: 55px;
    padding: 9px;
    background-color: var(--cream);
}

/* Two small gold diamonds at top and bottom centre — the decorative
   notches from the reference design. Purely visual. */
.track-box::before,
.track-box::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 17px;
    height: 17px;
    background-color: var(--cream);
    border: 2px solid var(--gold);
    transform: translateX(-50%) rotate(45deg);
}

.track-box::before { top: -10px; }
.track-box::after  { bottom: -10px; }

.track-inner {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 46px;
    padding: 6px 6px 6px 32px;
    gap: 12px;
}

/* Carrier picker sitting inside the white bar, with a gold divider
   separating it from the number box */
.track-carrier {
    border: none;
    border-right: 1px solid var(--gold);
    background: transparent;
    outline: none;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--navy);
    padding: 4px 16px 4px 0;
    margin-right: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

/* The line under the bar that confirms what happened */
.track-note {
    max-width: 800px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 0.9rem;
    min-height: 1.2em;      /* holds the space so the page does not jump */
}

.track-note.ok   { color: #1B6B3A; }
.track-note.warn { color: #B3231F; }

.track-input {
    flex: 1;                 /* takes up all the space the button doesn't need */
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--sans);
    font-size: 1.05rem;
    letter-spacing: 1.4px;
    color: var(--navy);
    min-width: 0;            /* stops a long value from forcing the box wider */
}

.track-input::placeholder {
    color: #8A93A0;
    text-transform: uppercase;
}

.track-btn {
    border: none;
    background-color: var(--navy);
    color: #FFFFFF;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 15px 44px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.track-btn:hover {
    background-color: #1B3768;
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.services {
    padding: 8px 44px 78px;
}

.cards {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* three equal columns */
    gap: 26px;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid var(--card-line);
    padding: 34px 32px 30px;
    box-shadow: 0 2px 10px rgba(18, 40, 76, 0.05);
}

.card-icon {
    float: left;          /* the heading wraps around to the right of the icon */
    width: 56px;
    height: 56px;
    margin: 2px 18px 6px 0;
    color: var(--gold-deep);
}

.card h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.32rem;
    line-height: 1.22;
    text-transform: uppercase;
    color: var(--navy);
    padding-top: 4px;
}

.card p {
    clear: both;          /* drops below the floated icon instead of beside it */
    padding-top: 16px;
    font-size: 0.97rem;
    line-height: 1.62;
    color: var(--body-text);
}

.learn-more {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
    transition: color 0.2s;
}

.learn-more:hover {
    color: var(--gold-deep);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why {
    padding: 14px 44px 92px;
}

.why h2 {
    font-family: var(--serif);
    font-weight: 900;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--navy);
    margin-bottom: 48px;
}

.why-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0; /* stops the icon being squeezed when the text is long */
    color: var(--gold-deep);
}

.why-copy h4 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.18rem;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.25;
}

.why-copy p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--body-text);
}

/* ==========================================================================
   RESPONSIVE — tablet
   A media query applies its rules only when the screen matches the condition.
   ========================================================================== */
@media (max-width: 1080px) {

    .header-inner {
        padding: 0 24px;
        gap: 18px;
    }

    .main-nav ul {
        gap: 22px;
    }

    .main-nav a {
        font-size: 13.5px;
        letter-spacing: 0.8px;
    }

    .hero-inner {
        grid-template-columns: 1fr; /* photo drops below the text */
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.9rem;
    }

    .cards,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE — mobile
   ========================================================================== */
@media (max-width: 760px) {

    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 18px 20px;
        gap: 14px;
    }

    .main-nav ul {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 20px;
    }

    .main-nav li,
    .main-nav a {
        height: auto;
    }

    /* The gold bar sits under the header on desktop; on mobile it would
       float oddly, so it becomes a simple underline on the link itself. */
    .main-nav a.active::after {
        bottom: -5px;
        height: 2px;
    }

    .hero {
        padding: 44px 20px 40px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero-sub {
        font-size: 1.25rem;
        margin-top: 16px;
    }

    .btn-quote {
        bottom: 12px;
        letter-spacing: 0.2px;
    }

    .track-section {
        padding: 4px 20px 50px;
    }

    .track-inner {
        flex-direction: column;
        border-radius: 28px;
        padding: 18px;
        gap: 14px;
    }

    .track-carrier {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gold);
        padding: 4px 0 12px;
        margin-right: 0;
        text-align: center;
        text-align-last: center;
    }

    .track-input {
        width: 100%;
        text-align: center;
    }

    .track-btn {
        width: 100%;
    }

    .track-box {
        border-radius: 34px;
    }

    .services,
    .why {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cards,
    .why-grid {
        grid-template-columns: 1fr; /* one card per row */
    }

    .why h2 {
        font-size: 1.9rem;
        margin-bottom: 34px;
    }
}

/* ==========================================================================
   CONTACT PAGE  (contact.html)
   ========================================================================== */

/* The heading block at the top of an inner page */
.page-head {
    padding: 70px 44px 34px;
    text-align: center;
}

.page-head h1 {
    font-family: var(--serif);
    font-weight: 900;
    font-size: 2.9rem;
    text-transform: uppercase;
    color: var(--navy);
}

.page-head p {
    margin-top: 16px;
    font-size: 1.12rem;
    font-weight: 300;
    color: var(--body-text);
}

.contact {
    padding: 8px 44px 96px;
}

/* White panel in the same style as the service cards */
.contact-panel {
    max-width: 940px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 1px solid var(--card-line);
    box-shadow: 0 2px 10px rgba(18, 40, 76, 0.05);
    padding: 44px 46px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.contact-address {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-pin {
    width: 46px;
    height: 46px;
    flex-shrink: 0; /* stops the pin being squashed by the text beside it */
    color: var(--gold-deep);
}

.contact-address h4 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.18rem;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
}

.contact-address p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--body-text);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Shared shape for both buttons. Only the colour differs. */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 4px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.6px;
    transition: filter 0.2s;
}

.contact-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-btn:hover {
    filter: brightness(1.08);
}

/* Red is the "act now" colour and this is the one action we want most */
.btn-call {
    background-color: #D6242C;
}

/* Green only ever means WhatsApp, because people recognise this exact green */
.btn-whatsapp {
    background-color: #1FA855;
}

@media (max-width: 760px) {

    .page-head {
        padding: 40px 20px 24px;
    }

    .page-head h1 {
        font-size: 1.95rem;
    }

    .contact {
        padding: 4px 20px 60px;
    }

    .contact-panel {
        grid-template-columns: 1fr; /* address above, buttons below */
        gap: 30px;
        padding: 30px 24px;
    }
}
