/* Universal Styles */
:root {
    --saffron: #D97706; /* Deep Saffron */
    --white: #FFFFFF;
    --green: #138808;   /* India Green */
    --navy-blue: #0A2E5C;
    --dark-navy: #0A2E5C;
    --light-gray: #F5F7FA;
    --text-color: #333333;
    --header-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    color: var(--navy-blue);
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--saffron);
    border-radius: 2px;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--saffron);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -60px;
    z-index: 2000;
    background-color: var(--white);
    color: var(--navy-blue);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--saffron);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--green);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--navy-blue);
}

.btn-primary:hover {
    background-color: var(--saffron);
}

/* Header & Navigation */
.site-header {
    background-color: var(--dark-navy);
    background-image: linear-gradient(90deg, #0A2E5C 0%, #0C3A6E 60%, #0A2E5C 100%);
    color: var(--white);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0,0,0,0.18);
    border-bottom: 3px solid var(--saffron);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo (brand mark + wordmark) */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    height: 128px;
    overflow: hidden;
}

.logo img.logo-mark {
    height: 237px;
    width: auto;
    display: block;
}

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

.logo .logo-text .logo-name {
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

.logo .logo-text .logo-name .accent {
    color: var(--saffron);
}

.logo .logo-text .logo-sub {
    font-size: 0.62em;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #CFD8E3;
    margin-top: 2px;
}

.logo:hover .logo-text .logo-name {
    color: var(--white);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li {
    margin-left: 26px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.02em;
    padding: 6px 2px;
    position: relative;
    display: inline-block;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--saffron);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.68)), url('../img/header-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-section.home-hero {
    background-position: center center, center center;
    background-color: var(--dark-navy);
    background-size: 100% auto, 100% auto;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .tagline {
    font-size: 1.8em;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--light-gray);
}

/* Sections */
section {
    padding: 80px 0;
}

.about-section,
.contact-section {
    background-color: var(--light-gray);
}

.sectors-section {
    background-color: var(--white);
}

/* Sector Grid */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sector-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--navy-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--saffron);
}

.sector-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--green);
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--saffron);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .error-message {
    color: var(--saffron);
    font-size: 0.95em;
    font-weight: 600;
    margin-top: -10px;
}

.contact-form .error {
    border-color: var(--saffron);
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* Honeypot: hidden from humans, visible to bots that auto-fill all fields. */
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Inline submission status (success / error) shown after fetch to mail.php. */
.contact-form .form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.4;
    display: none;
    border: 1px solid transparent;
}

.contact-form .form-status.show {
    display: block;
}

.contact-form .form-status.success {
    color: #0a5c2e;
    background: #e7f6ec;
    border-color: #b7dec6;
}

.contact-form .form-status.error {
    color: #8a1f1f;
    background: #fdeaea;
    border-color: #f1b9b9;
}

/* Footer */
.site-footer {
    background-color: var(--dark-navy);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.site-footer p {
    margin: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--saffron);
    color: var(--white);
    border: none;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--green);
}

/* Scroll reveal animation */
.fade-in-up {
    animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links li {
        margin-left: 16px;
    }
    .nav-links a {
        font-size: 0.95em;
    }
    .logo .logo-text .logo-sub {
        display: none;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 14px;
        display: none;
        background-color: rgba(255,255,255,0.04);
        border-top: 1px solid rgba(255,255,255,0.12);
        padding: 10px 0 14px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 4px 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 8px 4px;
        font-size: 1.05em;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content .tagline {
        font-size: 1.4em;
    }

    h2 {
        font-size: 2em;
    }

    .grid-2-cols,
    .grid,
    .sector-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 6px 0;
    }

    .logo {
        height: 88px;
    }

    .logo img.logo-mark {
        height: 163px;
    }

    .logo .logo-text .logo-name {
        font-size: 1.1em;
    }

    .hero-content h1 {
        font-size: 2.3em;
    }

    .hero-content .tagline {
        font-size: 1.15em;
    }

    .btn {
        padding: 10px 20px;
    }

    section,
    .section {
        padding: 50px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 16px;
        bottom: 16px;
    }
}

/* ============================================================
   Shared layout components (used across all content pages)
   ============================================================ */

.bg-light-gray {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

.text-center h2 {
    text-align: center;
}

/* Per-page hero background variants */
.hero-section.about-hero,
.hero-section.services-hero,
.hero-section.products-hero,
.hero-section.projects-hero,
.hero-section.partners-hero,
.hero-section.contact-hero {
    min-height: 56vh;
    background-color: var(--dark-navy);
    background-blend-mode: overlay;
}

.hero-section.about-hero {
    background-image: linear-gradient(rgba(10,46,92,0.78), rgba(10,46,92,0.86)), url('../img/header-bg.jpg');
    background-size: 100% auto, 100% auto;
}
.hero-section.services-hero {
    background-image: linear-gradient(rgba(10,46,92,0.78), rgba(10,46,92,0.86)), url('../img/s1.jpg');
}
.hero-section.products-hero {
    background-image: linear-gradient(rgba(10,46,92,0.80), rgba(10,46,92,0.86)), url('../img/p3.jpg');
}
.hero-section.projects-hero {
    background-image: linear-gradient(rgba(10,46,92,0.80), rgba(10,46,92,0.86)), url('../img/fact.jpg');
}
.hero-section.partners-hero {
    background-image: linear-gradient(rgba(10,46,92,0.80), rgba(10,46,92,0.86)), url('../img/11.jpg');
}
.hero-section.contact-hero {
    background-image: linear-gradient(rgba(10,46,92,0.80), rgba(10,46,92,0.86)), url('../img/form-bg.jpg');
}

/* Generic two-column grid */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.grid-2-cols > div,
.grid-2-cols > * {
    min-width: 0;
}

.grid-2-cols h2 {
    font-size: clamp(1.3em, 4vw, 2em);
    text-align: left;
    margin-bottom: 16px;
}

.grid-2-cols h2::after {
    left: 0;
    transform: none;
}

.grid-2-cols h3,
.grid-2-cols h4 {
    color: var(--navy-blue);
    margin-bottom: 10px;
}

.grid-2-cols h4 {
    font-size: 1.15em;
    margin-top: 18px;
}

.grid-2-cols ul {
    margin: 8px 0 0 18px;
}

.grid-2-cols li {
    list-style: disc;
    margin-bottom: 6px;
}

/* Generic card grid (divisions) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.grid article,
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    border-top: 4px solid var(--saffron);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid article:hover,
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.grid article h3 {
    font-size: 1.25em;
    margin-bottom: 8px;
}

/* Section utility */
.section {
    padding: 70px 0;
}

.page-header {
    background: linear-gradient(rgba(10,46,92,0.82), rgba(10,46,92,0.88)), url('../img/header-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 90px 20px;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.8em;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--light-gray);
    font-size: 1.2em;
    max-width: 720px;
    margin: 0 auto;
}

/* CTA section */
.cta-section {
    background: linear-gradient(rgba(10,46,92,0.92), rgba(10,46,92,0.92)), url('../img/header-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section h2::after {
    background-color: var(--saffron);
}

.cta-section p {
    color: var(--light-gray);
    font-size: 1.15em;
    max-width: 640px;
    margin: 0 auto 26px;
}

.cta-section .btn-primary {
    background-color: var(--saffron);
    color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
}

/* Content category blocks (services / products / projects / partners) */
.service-category,
.product-category,
.project-sector-item,
.partner-category-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 32px;
    margin: 0 0 32px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    border-left: 5px solid var(--saffron);
}

.service-category h3,
.product-category h3,
.project-sector-item h3,
.partner-category-item h3 {
    font-size: 1.55em;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.service-category h4,
.product-category h4,
.project-sector-item h4,
.partner-category-item h4 {
    font-size: 1.1em;
    color: var(--saffron);
    margin-top: 18px;
    margin-bottom: 6px;
}

.service-category ul,
.product-category ul,
.project-sector-item ul,
.partner-category-item ul {
    margin: 8px 0 0 20px;
}

.service-category li,
.product-category li,
.project-sector-item li,
.partner-category-item li {
    list-style: disc;
    margin-bottom: 6px;
}

/* FAQ items */
.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-left: 4px solid var(--green);
}

.faq-item h3 {
    font-size: 1.15em;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

/* Contact info grid */
.contact-info-grid {
    background-color: var(--white);
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    max-width: 640px;
    margin: 0 auto;
}

.contact-info-grid h3 {
    color: var(--navy-blue);
    margin-bottom: 14px;
}

.contact-info-grid p {
    margin-bottom: 10px;
}

/* Enquiry grid (contact) */
.enquiry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.enquiry-grid .card {
    border-top: 4px solid var(--green);
}

/* Form helpers */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dee5;
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--saffron);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.form-check input {
    margin-top: 4px;
}

/* Secondary button */
.btn-secondary {
    background-color: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-secondary:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

/* Hero readability refinements */
.hero-section {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content {
    padding: 0 10px;
}

.hero-content h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .tagline {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}

/* Sectors — counting style & responsive cap */
.sectors-section .sectors-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 10px;
    color: #555;
}

.sector-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* Lists inside about/sectors sections */
.about-section ul {
    margin: 10px 0 0 20px;
}

.about-section li {
    list-style: disc;
    margin-bottom: 6px;
}


/* Homepage company title (index.html only): premium Indian tricolour flag.
   A dedicated .flag-banner element carries the fabric (tricolour bands, folds,
   wavy animated silhouette), the company name sits in the white band, and the
   letter "O" of "Oilfield" is rendered as a 24-spoke Ashoka Chakra. */
.home-page .flag-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
    animation: flagSway 7s ease-in-out infinite;
}

.home-page .flag-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(179deg,
        var(--saffron) 0%, var(--saffron) 25%,
        var(--white) 25%, var(--white) 75%,
        var(--green) 75%, var(--green) 100%);
    clip-path: polygon(0% 2.50%, 5% 4.52%, 10% 4.88%, 15% 3.27%, 20% 1.03%, 25% 0.00%, 30% 1.03%, 35% 3.27%, 40% 4.88%, 45% 4.52%, 50% 2.50%, 55% 0.48%, 60% 0.12%, 65% 1.73%, 70% 3.97%, 75% 5.00%, 80% 3.97%, 85% 1.73%, 90% 0.12%, 95% 0.48%, 100% 2.50%, 99.1% 33.33%, 99.1% 66.66%, 100% 97.50%, 95% 95.48%, 90% 95.12%, 85% 96.73%, 80% 98.97%, 75% 100.00%, 70% 98.97%, 65% 96.73%, 60% 95.12%, 55% 95.48%, 50% 97.50%, 45% 99.52%, 40% 99.88%, 35% 98.27%, 30% 96.03%, 25% 95.00%, 20% 96.03%, 15% 98.27%, 10% 99.88%, 5% 99.52%, 0% 97.50%);
    animation: flagRipple 8s linear infinite;
}

/* Vertical fabric folds + overhead light shading */
.home-page .flag-folds {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 26%,
            rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, 0.14) 100%),
        repeating-linear-gradient(94deg,
            rgba(0, 0, 0, 0.05) 0 4%,
            rgba(255, 255, 255, 0.09) 8%,
            rgba(0, 0, 0, 0.05) 12%);
}

/* Slow moving sheen across the fabric */
.home-page .flag-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0.16) 16%,
        rgba(0, 0, 0, 0.04) 34%, rgba(255, 255, 255, 0.14) 52%,
        rgba(0, 0, 0, 0.04) 70%, rgba(255, 255, 255, 0.16) 86%,
        rgba(0, 0, 0, 0.05) 100%);
    background-size: 240% 100%;
    animation: fabricDrift 9s linear infinite;
}

/* Ashoka Chakra as the "O" of "Oilfield": 24-spoke navy wheel drawn inline so
   it reads as a letter of the typography and sways with the flag fabric */
.home-page .flag-chakra-o {
    display: inline-block;
    height: 1.12em;
    aspect-ratio: 1 / 1;
    vertical-align: -0.19em;
    margin: 0 0.01em;
    color: var(--navy-blue);
}

.home-page .flag-chakra-o .chakra-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home-page .flag-chakra-o .chakra-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.home-page .flag-chakra-o .chakra-hub {
    fill: currentColor;
}

.home-page .flag-chakra-o .chakra-svg line {
    stroke: currentColor;
    stroke-width: 1.35;
}

.home-page .hero-content h1.flag-title {
    position: relative;
    z-index: 1;
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 0.8em 1.2em;
    font-size: 2.3em;
    color: var(--navy-blue);
    text-shadow: none;
    background: none;
}

@keyframes flagSway {
    0%, 100% { transform: rotate(0.4deg) skewY(0.3deg); }
    50%      { transform: rotate(-0.4deg) skewY(-0.3deg); }
}

/* Travelling wave along the top/bottom edges of the flag */
@keyframes flagRipple {
    0%   { clip-path: polygon(0% 2.50%, 5% 4.52%, 10% 4.88%, 15% 3.27%, 20% 1.03%, 25% 0.00%, 30% 1.03%, 35% 3.27%, 40% 4.88%, 45% 4.52%, 50% 2.50%, 55% 0.48%, 60% 0.12%, 65% 1.73%, 70% 3.97%, 75% 5.00%, 80% 3.97%, 85% 1.73%, 90% 0.12%, 95% 0.48%, 100% 2.50%, 99.1% 33.33%, 99.1% 66.66%, 100% 97.50%, 95% 95.48%, 90% 95.12%, 85% 96.73%, 80% 98.97%, 75% 100.00%, 70% 98.97%, 65% 96.73%, 60% 95.12%, 55% 95.48%, 50% 97.50%, 45% 99.52%, 40% 99.88%, 35% 98.27%, 30% 96.03%, 25% 95.00%, 20% 96.03%, 15% 98.27%, 10% 99.88%, 5% 99.52%, 0% 97.50%); }
    25%  { clip-path: polygon(0% 5.00%, 5% 3.97%, 10% 1.73%, 15% 0.12%, 20% 0.48%, 25% 2.50%, 30% 4.52%, 35% 4.88%, 40% 3.27%, 45% 1.03%, 50% 0.00%, 55% 1.03%, 60% 3.27%, 65% 4.88%, 70% 4.52%, 75% 2.50%, 80% 0.48%, 85% 0.12%, 90% 1.73%, 95% 3.97%, 100% 5.00%, 99.1% 33.33%, 99.1% 66.66%, 100% 100.00%, 95% 98.97%, 90% 96.73%, 85% 95.12%, 80% 95.48%, 75% 97.50%, 70% 99.52%, 65% 99.88%, 60% 98.27%, 55% 96.03%, 50% 95.00%, 45% 96.03%, 40% 98.27%, 35% 99.88%, 30% 99.52%, 25% 97.50%, 20% 95.48%, 15% 95.12%, 10% 96.73%, 5% 98.97%, 0% 100.00%); }
    50%  { clip-path: polygon(0% 2.50%, 5% 0.48%, 10% 0.12%, 15% 1.73%, 20% 3.97%, 25% 5.00%, 30% 3.97%, 35% 1.73%, 40% 0.12%, 45% 0.48%, 50% 2.50%, 55% 4.52%, 60% 4.88%, 65% 3.27%, 70% 1.03%, 75% 0.00%, 80% 1.03%, 85% 3.27%, 90% 4.88%, 95% 4.52%, 100% 2.50%, 99.1% 33.33%, 99.1% 66.66%, 100% 97.50%, 95% 99.52%, 90% 99.88%, 85% 98.27%, 80% 96.03%, 75% 95.00%, 70% 96.03%, 65% 98.27%, 60% 99.88%, 55% 99.52%, 50% 97.50%, 45% 95.48%, 40% 95.12%, 35% 96.73%, 30% 98.97%, 25% 100.00%, 20% 98.97%, 15% 96.73%, 10% 95.12%, 5% 95.48%, 0% 97.50%); }
    75%  { clip-path: polygon(0% 0.00%, 5% 1.03%, 10% 3.27%, 15% 4.88%, 20% 4.52%, 25% 2.50%, 30% 0.48%, 35% 0.12%, 40% 1.73%, 45% 3.97%, 50% 5.00%, 55% 3.97%, 60% 1.73%, 65% 0.12%, 70% 0.48%, 75% 2.50%, 80% 4.52%, 85% 4.88%, 90% 3.27%, 95% 1.03%, 100% 0.00%, 99.1% 33.33%, 99.1% 66.66%, 100% 95.00%, 95% 96.03%, 90% 98.27%, 85% 99.88%, 80% 99.52%, 75% 97.50%, 70% 95.48%, 65% 95.12%, 60% 96.73%, 55% 98.97%, 50% 100.00%, 45% 98.97%, 40% 96.73%, 35% 95.12%, 30% 95.48%, 25% 97.50%, 20% 99.52%, 15% 99.88%, 10% 98.27%, 5% 96.03%, 0% 95.00%); }
    100% { clip-path: polygon(0% 2.50%, 5% 4.52%, 10% 4.88%, 15% 3.27%, 20% 1.03%, 25% 0.00%, 30% 1.03%, 35% 3.27%, 40% 4.88%, 45% 4.52%, 50% 2.50%, 55% 0.48%, 60% 0.12%, 65% 1.73%, 70% 3.97%, 75% 5.00%, 80% 3.97%, 85% 1.73%, 90% 0.12%, 95% 0.48%, 100% 2.50%, 99.1% 33.33%, 99.1% 66.66%, 100% 97.50%, 95% 95.48%, 90% 95.12%, 85% 96.73%, 80% 98.97%, 75% 100.00%, 70% 98.97%, 65% 96.73%, 60% 95.12%, 55% 95.48%, 50% 97.50%, 45% 99.52%, 40% 99.88%, 35% 98.27%, 30% 96.03%, 25% 95.00%, 20% 96.03%, 15% 98.27%, 10% 99.88%, 5% 99.52%, 0% 97.50%); }
}

@keyframes fabricDrift {
    from { background-position: 240% 0; }
    to   { background-position: -240% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .flag-wrap,
    .home-page .flag-banner,
    .home-page .flag-sheen {
        animation: none;
    }
}
/* Responsive scaling for the flag banner */
@media (max-width: 768px) {
    .home-page .hero-content h1.flag-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .home-page .hero-content h1.flag-title {
        font-size: 1.15em;
        padding: 0.7em 0.8em;
    }
}
