/* ==========================================================================
   INGESTION ENNOVATION — THEME OVERRIDES
   Loaded after each page's own <style> block so these rules win.
   Minimal + bold: Inter, floating pill header, rounded surfaces.
   ========================================================================== */

:root {
    --logo-h: 36px; /* header and footer logo share one size */
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --pill: 999px;
}

body, button, input, select, textarea {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4,
.section-header h2, .have-project-title, .values-title, .who-we-are-title,
.what-we-do-title, .innovation-title, .company-profile-title {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

/* --- FLOATING PILL HEADER (white glass) --- */
header,
header.white-bg {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1180px;
    height: 68px;
    padding: 0 10px 0 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: var(--pill);
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px rgba(8, 45, 74, 0.18);
}

header.white-bg {
    background-color: rgba(255, 255, 255, 0.85);
}

.logo,
.logo:visited {
    justify-self: start;
    display: flex;
    align-items: center;
    text-decoration: none;
    transform: none !important;
}

.logo img {
    height: var(--logo-h) !important;
    width: auto;
    border-radius: 0;
    filter: none;
}

/* Menu button: same navy circle as the scroll button */
.menu-icon {
    display: block !important;
    justify-self: end;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-deep);
    box-shadow: var(--glow);
    transition: background 0.25s ease, transform 0.25s ease;
}

.menu-icon:hover { background: var(--brand); }

.menu-icon span,
header.white-bg .menu-icon span {
    left: 14px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
}

.menu-icon span:nth-child(1) { top: 17px; }
.menu-icon span:nth-child(2) { top: 23px; }
.menu-icon span:nth-child(3) { top: 29px; }
.menu-icon.active span:nth-child(1) { top: 23px; }
.menu-icon.active span:nth-child(3) { top: 23px; }

@media (max-width: 600px) {
    header, header.white-bg { height: 60px; padding: 0 6px 0 12px; top: 12px; width: calc(100% - 24px); }
    .logo img { height: var(--logo-h) !important; }
}

@media (min-width: 1024px) {
    header, header.white-bg { top: 69px; }
}

/* --- MENU DROPDOWN (opens from the pill) --- */
.nav-bar {
    top: 94px;
    left: auto;
    right: 16px;
    width: min(320px, calc(100% - 32px));
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-color: rgba(251, 248, 244, 0.98);
    box-shadow: 0 20px 50px rgba(8, 45, 74, 0.25);
}

@media (min-width: 1024px) {
    .nav-bar { top: 147px; right: max(16px, calc(50% - 590px)); }
}

@media (max-width: 600px) {
    .nav-bar { top: 82px; right: 12px; width: calc(100% - 24px); }
}

.nav-bar .nav-link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
}

.nav-bar .nav-link:hover { background: rgba(8, 45, 74, 0.06); }
.nav-bar .nav-link.current { background: var(--brand-deep); color: var(--cream); }

/* --- HOME HERO --- */
.hero {
    height: 90vh !important;
    min-height: 620px;
    padding-top: 0;
}

/* Sunset tanker photo: show the tank, sun and storage tanks */
.image-container img {
    transform: none !important;
    object-position: center 55% !important;
}

@media (max-aspect-ratio: 4/5) {
    .image-container img {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 115% !important;
        object-position: 30% 60% !important;
    }
}

.big-typography {
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    bottom: 0;
    width: 100% !important;
    max-width: 1180px;
    margin: 0 !important;
    padding: 0 40px 72px;
    right: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    animation: heroFade 0.9s ease-out 0.2s both !important;
}

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

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: var(--pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.big-typography h1 {
    font-size: clamp(2.6rem, 7vw, 6.2rem) !important;
    font-weight: 900 !important;
    line-height: 0.98;
    letter-spacing: -0.04em !important;
    text-transform: none;
    color: #fff;
    text-shadow: none;
    margin-bottom: 36px !important;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.hero-paragraph {
    max-width: 440px;
    margin: 0 !important;
    font-size: 1.05rem !important;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: none;
}

.hero-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    border-radius: var(--pill);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-btn:hover { transform: translateY(-2px); }

.hero-btn-primary {
    background: var(--cream);
    color: var(--brand-deep);
    border: 1px solid var(--cream);
}

.hero-btn-primary:hover { background: #fff; border-color: #fff; }

.hero-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

/* "moving." keeps moving */
.hero-moving {
    display: inline-block;
    animation: heroMoving 3.2s cubic-bezier(0.65, 0, 0.35, 1) 1.2s infinite;
}

@keyframes heroMoving {
    0%, 100% { transform: translateX(0) skewX(0deg); }
    45% { transform: translateX(0.35em) skewX(-8deg); }
    60% { transform: translateX(0.35em) skewX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-moving, .big-typography { animation: none !important; }
}

@media (max-width: 767px) {
    .big-typography { padding: 0 20px 48px; }
    .hero-bottom { flex-direction: column; align-items: stretch; gap: 22px; }
    .hero-actions { width: 100%; }
    .hero-btn { flex: 1; height: 48px; padding: 0 16px; }
}

/* --- INNER PAGE HEROES --- */
.about-hero-content h1, .services-hero-content h1,
.values-hero-content h1, .contact-hero-content h1 {
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    text-shadow: none;
}

/* --- ROUNDED SURFACES --- */
.service-card, .process-step, .industry-item, .benefit-item, .leader-card,
.approach-item, .mission-item, .vision-item, .faq-item, .response-item,
.contact-info-section, .commitment-item-minimal {
    border-radius: var(--radius);
}

.contact-form-section, .map-container, .map-placeholder, .emergency-section,
.service-detail-section-blue, .service-detail-section-white,
.about-section-blue, .about-section-white,
.value-item-blue, .value-item-white,
.commitment-section-minimal {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-icon, .approach-icon, .contact-detail-icon {
    border-radius: var(--radius-sm);
}

.form-group input, .form-group select, .form-group textarea {
    border-radius: var(--radius-sm);
}

/* Full-width bands become inset rounded cards */
.have-project-section,
#about-page .values-section,
#about-page .innovation-section,
#about-page .company-profile-section,
#about-page .who-we-are-section,
#about-page .what-we-do-section {
    width: calc(100% - 24px) !important;
    margin: 12px !important;
    align-self: stretch;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

#about-page .tg-video-preview,
#about-page .construction-image {
    border-radius: var(--radius-lg) !important;
}

#about-page .construction-image-section { padding: 0 12px; }
#about-page .tg-video-preview { margin-top: 0 !important; }
#about-page .text-content { margin-bottom: 0 !important; padding-bottom: 40px !important; background: transparent !important; }

/* Buttons become pills */
.cta-button-minimal, .submit-button, .get-in-touch-button, .supplier-button,
#about-page .values-button, #about-page .who-we-are-button,
#about-page .what-we-do-button, #about-page .company-profile-button {
    border-radius: var(--pill) !important;
}

.get-in-touch-button { height: auto !important; line-height: 1 !important; padding: 20px 40px !important; }
.cta-button-minimal { border-bottom: none !important; }

/* CTA box sits inside the page container: span its full width like the card grids above */
.cta-section-minimal {
    width: 100%;
    margin: 60px 0 0;
    padding: 60px 30px;
    border-radius: var(--radius-lg);
}

.footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.footer-logo img {
    height: var(--logo-h) !important;
    width: auto;
    /* footer uses logo-footer.png: brighter swooshes and light wordmark for navy */
    filter: none;
}

.scroll-down { border-radius: 50%; }

/* Long email addresses must wrap on phones */
.contact-layout > *, .contact-detail-text { min-width: 0; }
.contact-detail-text p, .emergency-item p { overflow-wrap: anywhere; }

#about-page .construction-image {
    height: clamp(260px, 38vw, 540px) !important;
    object-position: center 45%;
}

/* Keep the station below the "What We Do" heading */
#about-page .what-we-do-section { background-position: center 30%; }

/* ==========================================================================
   TYPE SCALE — one set of sizes for every page
   display (home hero) > h1 (page heroes) > h2 (sections) > h3 (cards)
   > h4 (small cards) > lead > body > label
   ========================================================================== */
:root {
    --fs-h1: clamp(2.5rem, 6vw, 4.5rem);
    --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
    --fs-h3: 1.25rem;
    --fs-h4: 1.0625rem;
    --fs-lead: 1.125rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-label: 0.75rem;
}

/* Only headings, labels and buttons are uppercase */
* { text-transform: none; }

/* h1 — page heroes */
.about-hero-content h1, .services-hero-content h1,
.values-hero-content h1, .contact-hero-content h1 {
    font-size: var(--fs-h1) !important;
    font-weight: 900 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
    text-transform: uppercase !important;
    margin-bottom: 24px !important;
}

/* h2 — section titles */
.section-header h2, .values-intro h2, .have-project-title,
.cta-section-minimal h2, .commitment-section-minimal h2,
.emergency-section h3, .quick-response h3,
.service-detail-section-blue h3, .service-detail-section-white h3,
#about-page .tg-title, #about-page .tg-impact-title,
#about-page .values-title, #about-page .innovation-title,
#about-page .company-profile-title, #about-page .who-we-are-title,
#about-page .what-we-do-title {
    font-size: var(--fs-h2) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
}

/* h3 — card titles */
.service-card h3, .mission-item h3, .vision-item h3,
.contact-info-section h3, .contact-form-section h3,
.value-item-blue .value-text h3, .value-item-white .value-text h3,
.about-section-blue h3, .about-section-white h3, .map-placeholder h4 {
    font-size: var(--fs-h3) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
}

/* h4 — small card titles */
.process-step h4, .benefit-item h4, .faq-item h4, .leader-card h4,
.approach-text h4, .response-item h4, .industry-item h4,
.commitment-item-minimal h4, .business-hours h4 {
    font-size: var(--fs-h4) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

/* Labels / eyebrows */
#about-page .tg-subtitle, .contact-detail-text h4, .form-group label,
.emergency-item h4, .contact-text-footer h4, .footer-company-info h3,
.footer-services h3, .footer-links h3, .footer-contact h3 {
    font-size: var(--fs-label) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

/* Body copy */
body p, body li {
    font-size: var(--fs-body) !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    font-style: normal !important;
}

/* Lead paragraphs (intros under titles) */
.about-hero-content p, .services-hero-content p, .values-hero-content p,
.contact-hero-content p, .hero-paragraph, .section-header p, .values-intro p,
.cta-section-minimal p, .have-project-subtitle, .commitment-section-minimal > p,
.emergency-section > p, .quick-response > p,
#about-page .tg-description, #about-page .tg-impact-text {
    font-size: var(--fs-lead) !important;
    line-height: 1.65 !important;
}

/* Small text */
.footer p, .footer li, .contact-item span, .hours-list li,
.service-features li, .footer-bottom p {
    font-size: var(--fs-small) !important;
}
.footer-bottom p { letter-spacing: 0.04em !important; }
.emergency-item p { font-size: var(--fs-h4) !important; font-weight: 700 !important; }

/* Buttons and links styled as buttons */
.cta-button-minimal, .submit-button,
.get-in-touch-button, .supplier-button, #about-page .values-button,
#about-page .who-we-are-button, #about-page .what-we-do-button,
#about-page .company-profile-button, .nav-bar .nav-link {
    font-size: var(--fs-small) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* Footer links */
.footer-services a, .footer-links a {
    font-size: var(--fs-small) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 768px) {
    :root { --fs-lead: 1.0625rem; }
}

/* ==========================================================================
   BRAND LAYER — client palette + light construction / bulk-fuel structure
   ========================================================================== */

/* --- Primary button is brass --- */
.hero-btn-primary,
.cta-button-minimal,
.submit-button {
    background: var(--brass) !important;
    border-color: var(--brass) !important;
    color: var(--navy) !important;
}

.hero-btn-primary:hover,
.cta-button-minimal:hover,
.submit-button:hover {
    background: #C29E66 !important;
    border-color: #C29E66 !important;
}

/* Small labels in earth brown */
#about-page .tg-subtitle,
.contact-detail-text h4 {
    color: var(--brown) !important;
}

/* --- Home: key facts strip under the hero --- */
.facts-strip {
    position: relative;
    z-index: 2;
    background: var(--navy);
    color: var(--cream);
}

.facts-strip::after {
    content: '';
    display: block;
    height: 8px;
    background: var(--hazard);
}

.facts-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 18px;
    border-left: 3px solid var(--brass);
}

.fact-value {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}

.fact-label {
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}

@media (max-width: 767px) {
    .facts-inner { grid-template-columns: 1fr 1fr; padding: 28px 20px; gap: 22px 16px; }
}

/* --- Home: about as two columns, then a bento grid of tiles --- */
#about-page .tg-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 16px 16px !important;
}

#about-page .tg-content > * {
    width: auto !important;
    margin: 0 !important;
}

#about-page .text-content,
#about-page .tg-impact {
    padding: 0 24px 40px !important;
    border-left: none !important;
    border-top: 3px solid var(--brass);
    padding-top: 28px !important;
}

#about-page .tg-subtitle, #about-page .tg-title,
#about-page .tg-description, #about-page .tg-impact-title,
#about-page .tg-impact-text {
    padding: 0 !important;
}

#about-page .tg-title,
#about-page .tg-impact-title {
    margin-bottom: 16px !important;
}

#about-page .construction-image-section { grid-column: 1 / -1; padding: 0 !important; }
#about-page .company-profile-section { grid-column: 1 / -1; }

@media (max-width: 768px) {
    #about-page .tg-content { grid-template-columns: 1fr; padding-top: 48px !important; }
    #about-page .text-content, #about-page .tg-impact { padding: 24px 8px 24px !important; }
}

/* --- Brand diagonal (from the logo sheet) on navy panels --- */
.have-project-section,
.cta-section-minimal,
#about-page .values-section,
#about-page .who-we-are-section,
.emergency-section,
.commitment-section-minimal,
.contact-form-section,
.service-detail-section-blue,
.about-section-blue,
.vision-item,
.value-item-blue,
.map-placeholder {
    background:
        linear-gradient(155deg, transparent 0 76%, var(--petrol) 76% 84%, var(--brass) 84% 88%, transparent 88%),
        var(--panel) !important;
}

/* --- Inner page heroes: title bottom-left like the home page --- */
.about-hero, .services-hero, .values-hero, .contact-hero {
    align-items: flex-end !important;
    justify-content: center !important;
    height: 80vh !important;
    min-height: 560px;
}

.about-hero-content, .services-hero-content,
.values-hero-content, .contact-hero-content {
    width: 100%;
    max-width: 1180px !important;
    padding: 0 40px 72px !important;
    text-align: left !important;
}

.about-hero-content::before, .services-hero-content::before,
.values-hero-content::before, .contact-hero-content::before {
    content: 'Ingestion Ennovation';
    display: inline-block;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 3px solid var(--brass);
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
}

.about-hero-content p, .services-hero-content p,
.values-hero-content p, .contact-hero-content p {
    max-width: 620px;
    margin-bottom: 0 !important;
    text-shadow: none !important;
}

@media (max-width: 767px) {
    .about-hero-content, .services-hero-content,
    .values-hero-content, .contact-hero-content { padding: 0 20px 48px !important; }
}

/* --- Section headers left-aligned with a brass rule --- */
.section-header {
    text-align: left !important;
    max-width: 760px;
}

.section-header p { margin: 0 !important; }
.section-header h2::after { margin: 14px 0 0 !important; background: var(--brass) !important; }

/* --- Cards: brass top edge, left-aligned service cards --- */
.service-card, .benefit-item, .leader-card, .response-item,
.faq-item, .industry-item, .process-step {
    border-top: 3px solid var(--brass) !important;
}

.service-card {
    align-items: flex-start !important;
    text-align: left !important;
}

/* --- Footer: hazard stripe on top --- */
.footer {
    border-top: none !important;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--hazard);
}

/* Station sits below the heading in the narrower tile */
#about-page .what-we-do-section {
    background-size: 165% auto !important;
    background-position: center 0% !important;
}

/* Company profile tile in warm stone */
#about-page .company-profile-section {
    background: var(--stone) !important;
}

#about-page .company-profile-button {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
}

.service-detail-section-blue h3,
.service-detail-section-white h3 {
    text-align: left !important;
}
