/* ==========================================================
   Singhal Consultancy — main stylesheet
   Location on server: public_html/assets/style.css
   ========================================================== */

:root {
    /* Brand colours, matched to the logo and hero video */
    --navy: #03234a;
    --navy-light: #0a3366;
    --navy-dark: #021733;
    --video-edge: #011e40;
    --gold: #c49c5e;
    --gold-dark: #a8814a;
    --white: #ffffff;
    --off-white: #f7f5f0;
    --text: #1f2937;
    --text-muted: #5b6472;
    --border: #e5e1d8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 6px;
    --shadow: 0 10px 30px rgba(11, 29, 51, 0.12);
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--navy); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(197, 160, 89, 0.35); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, gap 0.3s;
}
.btn-outline:hover { border-color: var(--gold); gap: 10px; }
.btn-outline i { font-size: 18px; }

/* ---------- Section titles ---------- */
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; }
.section-title h2 span { color: var(--gold); font-style: italic; }
.section-title .line { width: 70px; height: 3px; background: var(--gold); margin-top: 16px; }
.section-title p { margin-top: 18px; color: var(--text-muted); font-size: 17px; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.scrolled { background: var(--navy); padding: 14px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.header-container { display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--white); display: inline-flex; align-items: center; }
.logo-mark { height: 38px; width: auto; margin-right: 12px; flex-shrink: 0; }
.logo span { color: var(--gold); font-weight: 400; font-style: italic; }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span { display: block; width: 28px; height: 2px; background: var(--white); transition: width 0.3s; }
.hamburger span:nth-child(2) { width: 20px; margin-left: auto; }
.hamburger:hover span:nth-child(2) { width: 28px; }

/* ---------- Navigation overlay ---------- */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(11, 29, 51, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

.close-nav {
    position: absolute;
    top: 24px; right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 42px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.close-nav:hover { color: var(--gold); transform: rotate(90deg); }

.nav-content { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.nav-link {
    font-family: var(--serif);
    font-size: clamp(28px, 5vw, 44px);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: color 0.3s, transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.nav-overlay.active .nav-link { transform: translateY(0); opacity: 1; }
.nav-overlay.active .nav-link:nth-child(2) { transition-delay: 0.05s; }
.nav-overlay.active .nav-link:nth-child(3) { transition-delay: 0.1s; }
.nav-overlay.active .nav-link:nth-child(4) { transition-delay: 0.15s; }
.nav-overlay.active .nav-link:nth-child(5) { transition-delay: 0.2s; }
.nav-link:hover { color: var(--gold); }

/* ---------- Hero ---------- */
/* The video is shown whole (never cropped) because its words are part of the picture.
   The background matches the video's own edge colour so any side bars blend in. */
.hero {
    position: relative;
    background: var(--video-edge);
    color: var(--white);
}
.hero-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100vh;
    margin: 0 auto;
}
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--video-edge);
}
.video-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(1, 30, 64, 0.55);
    color: var(--white);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.video-toggle:hover { background: var(--gold); border-color: var(--gold); }

.hero-intro {
    background: linear-gradient(180deg, var(--video-edge) 0%, var(--navy) 100%);
    color: var(--white);
    text-align: center;
}
.hero-content { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 90px; }
.eyebrow {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.hero-intro h1 { font-size: clamp(34px, 5vw, 60px); color: var(--white); max-width: 860px; margin: 0 auto 20px; }
.hero-intro h1 span { color: var(--gold); font-style: italic; }
.hero-text { font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 36px; font-weight: 300; }

.fade-in-up { opacity: 0; animation: fadeInUp 0.9s var(--ease) forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- The Firm ---------- */
.the-firm-section { padding: 100px 0; background: var(--white); }
.firm-text { max-width: 900px; margin: 0 auto; font-size: 18px; color: var(--text-muted); line-height: 1.8; }

/* ---------- Expertise ---------- */
.expertise-section { padding: 100px 0; background: var(--off-white); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.expertise-card {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
    background: var(--navy);
}
.card-bg { position: absolute; inset: 0; }
.card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 29, 51, 0.96) 25%, rgba(11, 29, 51, 0.55) 70%, rgba(11, 29, 51, 0.3) 100%);
    transition: background 0.5s var(--ease);
}
.expertise-card:hover .card-bg img { transform: scale(1.08); }
.expertise-card:hover .card-bg::after { background: rgba(11, 29, 51, 0.93); }

.card-content { position: relative; z-index: 1; padding: 30px; color: var(--white); }
.card-content h3 { color: var(--white); font-size: 24px; margin-bottom: 12px; }
.card-content h3::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin-top: 12px; }
.card-content p { font-size: 15px; color: rgba(255, 255, 255, 0.82); margin-bottom: 18px; }

/* ---------- Sectors ---------- */
.sectors-section { padding: 100px 0; background: var(--white); }
.sectors-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.sector-item {
    text-align: center;
    padding: 34px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.sector-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.sector-item i { font-size: 40px; color: var(--gold); margin-bottom: 14px; }
.sector-item h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-section { padding: 100px 0; background: var(--navy); color: var(--white); }
.contact-container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }

.contact-form-wrapper h2 { color: var(--white); font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.contact-form-wrapper h2 span { color: var(--gold); font-style: italic; }
.contact-form-wrapper > p { color: rgba(255, 255, 255, 0.7); margin-bottom: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-group { position: relative; margin-bottom: 32px; }
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 0;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    outline: none;
    resize: vertical;
}
.input-group label {
    position: absolute;
    left: 0;
    top: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: top 0.3s var(--ease), font-size 0.3s var(--ease), color 0.3s;
}
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label { top: -14px; font-size: 12px; color: var(--gold); }

.focus-border {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}
.input-group textarea ~ .focus-border { bottom: 6px; }
.input-group input:focus ~ .focus-border,
.input-group textarea:focus ~ .focus-border { width: 100%; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 28px; font-size: 15px; }
.form-status.success { background: rgba(46, 160, 67, 0.15); border: 1px solid rgba(46, 160, 67, 0.6); }
.form-status.error { background: rgba(220, 53, 69, 0.15); border: 1px solid rgba(220, 53, 69, 0.6); }

.contact-info {
    background: var(--navy-light);
    padding: 40px;
    border-radius: var(--radius);
    border-top: 3px solid var(--gold);
    align-self: start;
}
.contact-info h3 { color: var(--white); font-size: 26px; margin-bottom: 30px; }
.info-item { display: flex; gap: 18px; margin-bottom: 26px; }
.info-item .icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
}
.info-item h4 { color: var(--white); font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.info-item p { color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.info-item a:hover { color: var(--gold); }

.social-links-contact { display: flex; gap: 12px; margin-top: 10px; }
.social-links-contact a {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    transition: background 0.3s, border-color 0.3s;
}
.social-links-contact a:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.65); padding: 34px 0; font-size: 14px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--white); display: inline-flex; align-items: center; }
.footer-logo .logo-mark { height: 32px; }
.footer-logo span { color: var(--gold); font-weight: 400; font-style: italic; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    font-size: 32px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s var(--ease);
}
.floating-whatsapp:hover { transform: scale(1.1); }

/* ---------- Disclaimer modal ---------- */
.disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(7, 20, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.disclaimer-modal[hidden] { display: none; }
.disclaimer-box {
    background: var(--white);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: var(--radius);
    border-top: 4px solid var(--gold);
}
.disclaimer-box h2 { font-size: 28px; margin-bottom: 16px; }
.disclaimer-box p,
.disclaimer-box li { color: var(--text-muted); font-size: 15px; }
.disclaimer-box ul { list-style: disc; padding-left: 20px; margin: 14px 0 26px; }
.disclaimer-box li { margin-bottom: 8px; }

/* ---------- Inner pages (Privacy Policy) ---------- */
.header.solid { position: sticky; background: var(--navy); padding: 18px 0; }
.back-home { color: rgba(255, 255, 255, 0.8); font-size: 14px; transition: color 0.3s; }
.back-home:hover { color: var(--gold); }

.page { padding: 70px 0 90px; background: var(--white); }
.page-container { max-width: 820px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.page h1 span { color: var(--gold); font-style: italic; }
.page-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 34px; }
.page h2 { font-size: 22px; margin: 36px 0 12px; }
.page p,
.page li { color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.page p { margin-bottom: 12px; }
.page ul { list-style: disc; padding-left: 22px; }
.page li { margin-bottom: 10px; }
.page a { color: var(--gold-dark); text-decoration: underline; }

/* ---------- 404 page ---------- */
.not-found { min-height: 100vh; display: flex; align-items: center; background: var(--navy); color: var(--white); }
.not-found .logo { display: inline-block; margin-bottom: 40px; }
.not-found h1 { font-size: clamp(80px, 15vw, 140px); color: var(--gold); line-height: 1; margin-bottom: 16px; }
.not-found p { color: rgba(255, 255, 255, 0.75); font-size: 18px; margin-bottom: 32px; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-container { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 640px) {
    .the-firm-section,
    .expertise-section,
    .sectors-section,
    .contact-section { padding: 70px 0; }
    .logo { font-size: 19px; }
    .logo-mark { height: 30px; margin-right: 9px; }
    .header { padding: 14px 0; background: var(--video-edge); }
    .hero { padding-top: 62px; }            /* keep the video below the header */
    .video-toggle { right: 10px; bottom: 10px; width: 34px; height: 34px; font-size: 18px; }
    .hero-content { padding-top: 46px; padding-bottom: 64px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-card { min-height: 340px; }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info { padding: 28px; }
    .disclaimer-box { padding: 28px; }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .fade-in-up { opacity: 1; }
}
