/*
Theme Name: Dev Maritime
Theme URI: https://devmaritime.com
Author: Dev Maritime Pvt. Ltd.
Author URI: https://devmaritime.com
Description: Premium maritime theme for Dev Maritime Pvt. Ltd. — fully integrated maritime house.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://devmaritime.com
Text Domain: dev-maritime
Tags: business, corporate, maritime, shipping, one-page
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ink:        #143454;
  --ink-deep:   #0A1A2A;
  --ink-soft:   #1E4A78;
  --cream:      #FFFFFF;
  --cream-deep: #F4F7FA;
  --gold:       #2A6B9C;
  --gold-bright:#438BCA;
  --gold-deep:  #102A45;
  --line:       rgba(20, 52, 84, 0.14);
  --muted:      #6A8299;
  --f-display:  'Playfair Display', serif;
  --f-classic:  'Playfair Display', serif;
  --f-body:     'Open Sans', sans-serif;
  --ease:       cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out:   cubic-bezier(0.19, 1, 0.22, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body { cursor: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; background: none; border: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04; mix-blend-mode: multiply;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader { position: fixed; inset: 0; z-index: 10000; background: var(--ink-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s var(--ease-out), visibility 0.8s; }
#preloader.done { opacity: 0; visibility: hidden; }
.pre-stage { position: relative; width: 280px; height: 150px; }
.pre-ship { position: absolute; left: 50%; top: 20px; width: 90px; height: auto; transform: translateX(-50%); color: var(--gold-bright); animation: shipRock 2.2s ease-in-out infinite; }
.pre-ship svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes shipRock { 0%,100% { transform: translateX(-50%) rotate(-4deg) translateY(0); } 50% { transform: translateX(-50%) rotate(4deg) translateY(-6px); } }
.pre-waves { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; overflow: hidden; }
.pre-waves svg { position: absolute; bottom: 0; left: -50%; width: 200%; height: 100%; }
.pre-waves .wave-1 { animation: waveMove 4s linear infinite; opacity: 0.4; }
.pre-waves .wave-2 { animation: waveMove 6s linear infinite reverse; opacity: 0.6; }
.pre-waves .wave-3 { animation: waveMove 8s linear infinite; opacity: 1; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(25%); } }
.pre-brand { margin-top: 40px; font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 22px; color: var(--gold-bright); letter-spacing: 0.04em; }
.pre-brand .amp { opacity: 0.5; margin: 0 8px; }
.pre-count { margin-top: 16px; font-size: 11px; letter-spacing: 0.3em; color: rgba(255,255,255,0.5); font-feature-settings: 'tnum'; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-ship, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); }
.cursor-ship { width: 26px; height: 26px; color: var(--gold-bright); transition: transform 0.15s linear, opacity 0.3s; }
.cursor-ship svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 2px rgba(0,0,0,0.3)); }
.cursor-ring { width: 50px; height: 50px; border: 1px solid var(--gold-bright); border-radius: 50%; opacity: 0.5; transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s, border-color 0.3s; }
.cursor-ring.hover { width: 72px; height: 72px; opacity: 1; border-color: var(--gold); }
.cursor-ship.hover { transform: translate(-50%,-50%) scale(1.3); }
@media (max-width: 900px), (pointer: coarse) {
  .cursor-ship, .cursor-ring { display: none; }
  body, button, a { cursor: auto; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav#site-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; background: transparent; transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
nav#site-nav.scrolled { background: rgba(255,255,255,0.98); backdrop-filter: blur(16px); padding: 10px 48px; border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.logo-img { height: 120px; width: auto; display: block; mix-blend-mode: multiply; transition: height 0.4s var(--ease); }
nav#site-nav.scrolled .logo-img { height: 80px; }

.nav-links { display: flex; gap: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(10px); }
.nav-links > a, .nav-dropdown > a { font-size: 14px; color: #FFFFFF; font-weight: 400; letter-spacing: 0.02em; padding: 10px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.nav-links a .anchor-icon { width: 13px; height: 13px; opacity: 0.6; transition: all 0.4s var(--ease); display: inline-block; color: var(--gold-bright); }
.nav-links a:hover .anchor-icon { opacity: 1; transform: rotate(25deg) scale(1.15); }
.caret { width: 10px; height: 10px; margin-left: 2px; transition: transform 0.4s var(--ease); opacity: 0.7; }
.nav-dropdown:hover .caret { transform: rotate(180deg); opacity: 1; color: var(--gold-bright); }
.nav-links > a::after, .nav-dropdown > a::after { content: ''; position: absolute; bottom: 6px; left: 16px; right: 16px; height: 1.5px; background: var(--gold-bright); opacity: 0.8; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links > a:hover::after, .nav-dropdown:hover > a::after { transform: scaleX(1); transform-origin: left; }
.nav-links > a:hover, .nav-dropdown:hover > a { background: rgba(42, 107, 156, 0.15); color: var(--cream); }
nav#site-nav.scrolled .nav-links { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.05); }
nav#site-nav.scrolled .nav-links > a, nav#site-nav.scrolled .nav-dropdown > a { color: var(--ink); }
nav#site-nav.scrolled .nav-links > a:hover, nav#site-nav.scrolled .nav-dropdown:hover > a { background: rgba(42,107,156,0.08); color: var(--ink-deep); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; background: rgba(10,26,42,0.96); backdrop-filter: blur(20px); min-width: 260px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(15px) scale(0.98); transition: all 0.4s var(--ease-out); border-radius: 12px; padding: 12px 0; border: 1px solid rgba(42,107,156,0.25); box-shadow: 0 15px 35px rgba(0,0,0,0.25); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(8px) scale(1); }
.nav-dropdown-menu a { border-radius: 0 !important; padding: 10px 24px !important; color: var(--cream) !important; background: transparent !important; border: none; display: block; font-size: 13px !important; transition: all 0.3s ease !important; }
.nav-dropdown-menu a:hover { background: rgba(42,107,156,0.2) !important; color: var(--gold-bright) !important; padding-left: 28px !important; }

.nav-cta { font-size: 13px; color: var(--cream); font-weight: 600; padding: 12px 22px; border-radius: 999px; background: var(--gold); display: inline-flex; align-items: center; gap: 10px; transition: all 0.4s var(--ease); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(42,107,156,0.3); }
.nav-cta .star-icon { width: 12px; height: 12px; fill: currentColor; }
nav#site-nav.scrolled .nav-cta { background: var(--ink); color: var(--cream); }
nav#site-nav.scrolled .nav-cta:hover { background: var(--gold-bright); }

/* Mobile Nav Toggle */
.nav-mobile-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--cream); padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; }
nav#site-nav.scrolled .nav-mobile-toggle { border-color: var(--line); color: var(--ink); }

/* ============================================================
   HERO - VIDEO
   ============================================================ */
.video-hero { position: relative; height: 100vh; min-height: 660px; display: flex; align-items: center; padding: 0 60px; overflow: hidden; background: var(--ink-deep); }
.hero-bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: 0; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.video-hero .hero-content { position: relative; z-index: 2; max-width: 900px; padding-top: 60px; }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 6.5vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--cream); margin: 0 0 30px; }
.hero-title em { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--gold-bright); position: relative; }
.hero-foot { max-width: 760px; }
.hero-lede { font-size: 20px; line-height: 1.65; color: rgba(255,255,255,0.9); font-weight: 300; }
.hero-lede strong { font-weight: 600; color: var(--cream); }
.hero-lede em { font-family: var(--f-classic); font-style: italic; font-size: 1.1em; color: var(--gold-bright); }

/* ============================================================
   INNER HERO (interior pages)
   ============================================================ */
.inner-hero { position: relative; background: var(--ink-deep); min-height: 360px; display: flex; align-items: flex-end; padding: 0 0 60px; overflow: hidden; }
.inner-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--ink-deep) 0%, var(--ink-soft) 100%); opacity: 0.95; }
.inner-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px; background: linear-gradient(to top, rgba(10,26,42,0.6), transparent); }
.inner-hero-content { position: relative; z-index: 2; max-width: 1360px; width: 100%; margin: 0 auto; padding: 120px 60px 0; }
.inner-hero-content h1 { font-family: var(--f-display); font-size: clamp(3rem, 5vw, 5rem); color: var(--cream); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.inner-hero-content h1 em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.inner-hero-content .sub { font-size: 19px; color: rgba(255,255,255,0.65); font-weight: 300; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { background: var(--cream-deep); border-bottom: 1px solid var(--line); padding: 14px 0; }
.breadcrumbs .wrap { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--gold); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--ink); font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
section { position: relative; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 60px; }
.eyebrow { font-family: var(--f-classic); font-style: italic; font-size: 18px; color: var(--gold); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 14px; font-weight: 500; }
.eyebrow::before { content: '✦'; color: var(--gold-bright); font-style: normal; font-size: 13px; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 7vw, 7rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); }
.h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
.h3 { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 28px; color: var(--cream); }
.h3 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { padding: 160px 0 130px; background: var(--cream); position: relative; }
.about-head { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.about-head .left { padding-top: 24px; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-top: 80px; align-items: start; }
.about-body .text p { font-size: 18px; line-height: 1.75; color: var(--ink); margin-bottom: 28px; font-weight: 400; }
.about-body .text p:first-of-type::first-letter { font-family: var(--f-display); font-weight: 700; font-size: 5.5em; font-style: italic; float: left; line-height: 0.85; padding: 10px 18px 0 0; color: var(--gold); }
.about-body .text p strong { font-weight: 600; }
.about-body .text p em { font-family: var(--f-classic); font-style: italic; font-size: 1.1em; color: var(--gold); }
.detail-list { border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.detail-row .dt { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.detail-row .dt em { font-style: italic; color: var(--gold); font-weight: 400; }
.detail-row .dd { font-size: 16px; line-height: 1.65; color: var(--muted); font-weight: 400; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services { padding: 140px 0; background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-end; margin-bottom: 90px; }
.services-head .eyebrow { color: var(--gold-bright); margin-bottom: 20px; }
.services-head .eyebrow::before { color: var(--gold-bright); }
.services-head .h2 { color: var(--cream); }
.services-head .h2 em { color: var(--gold-bright); }
.services-head .intro { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 460px; padding-bottom: 14px; font-weight: 300; }
.services-head .intro em { font-family: var(--f-classic); font-style: italic; color: var(--gold-bright); }
.svc-list { border-top: 1px solid rgba(42,107,156,0.25); }
.svc-row { display: grid; grid-template-columns: 72px 1fr 1.5fr 60px; align-items: center; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; transition: padding 0.5s var(--ease); overflow: hidden; }
.svc-row::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); z-index: 0; }
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row:hover { padding: 42px 24px; }
.svc-row > * { position: relative; z-index: 1; transition: color 0.5s var(--ease); }
.svc-row:hover * { color: var(--cream) !important; }
.svc-num { font-family: var(--f-display); font-size: 22px; font-weight: 500; font-style: italic; color: rgba(67,139,204,0.6); }
.svc-title { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; color: var(--cream); line-height: 1.15; }
.svc-title em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.svc-desc { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.7); max-width: 420px; padding-left: 40px; font-weight: 300; }
.svc-arrow { justify-self: end; width: 42px; height: 42px; border: 1px solid rgba(67,139,204,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.5s var(--ease); }
.svc-row:hover .svc-arrow { background: var(--ink-deep); border-color: var(--ink-deep); transform: rotate(-45deg); }
.svc-arrow svg { width: 14px; height: 14px; color: var(--gold-bright); transition: color 0.5s; }

/* ============================================================
   PILLARS SECTION
   ============================================================ */
.pillars { background: var(--ink); color: var(--cream); padding: 0; }
.pillar { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; max-width: 100%; min-height: 60vh; border-bottom: 1px solid rgba(42,107,156,0.2); }
.pillar:last-child { border-bottom: none; }
.pillar-media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%); width: 100%; }
.pillar-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(0.85) brightness(0.7); transition: transform 0.6s var(--ease); }
.pillar:hover .pillar-media img { transform: scale(1.05); }
.pillar-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 10%; }
.pillar-copy .num { font-family: var(--f-display); font-size: clamp(2.8rem, 4vw, 4rem); font-weight: 500; font-style: italic; letter-spacing: -0.03em; color: var(--gold-bright); margin-bottom: 26px; line-height: 1; display: flex; align-items: center; gap: 16px; }
.pillar-copy .num::after { content: ''; width: 60px; height: 1px; background: var(--gold-bright); }
.pillar-copy p { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.75); max-width: 520px; font-weight: 300; }
.pillar.reverse .pillar-media { order: 2; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 140px 0 160px; background: var(--ink-deep); color: var(--cream); position: relative; overflow: hidden; }
.cta-grid { max-width: 1360px; margin: 0 auto; padding: 0 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 120px; align-items: flex-start; position: relative; }
.cta-left .eyebrow { color: var(--gold-bright); margin-bottom: 30px; }
.cta-headline { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 6.5vw, 6.5rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 36px; }
.cta-headline em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.cta-sub { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.7); max-width: 500px; margin-bottom: 44px; font-weight: 300; }
.cta-btn { display: inline-flex; align-items: center; gap: 14px; padding: 20px 34px; border: 1px solid var(--gold-bright); border-radius: 999px; font-size: 14px; color: var(--cream); background: transparent; transition: all 0.5s var(--ease); position: relative; overflow: hidden; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.cta-btn::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateY(100%); transition: transform 0.5s var(--ease); z-index: 0; }
.cta-btn:hover::before { transform: translateY(0); }
.cta-btn:hover { color: var(--cream); border-color: var(--gold); }
.cta-btn span, .cta-btn svg { position: relative; z-index: 1; }
.cta-btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.cta-btn:hover svg { transform: translateX(5px); }
.cta-right { padding-top: 60px; }
.cta-card { padding: 26px 0; border-bottom: 1px solid rgba(42,107,156,0.25); }
.cta-card:first-child { padding-top: 0; }
.cta-card:last-child { border-bottom: none; }
.cta-card .label { font-family: var(--f-classic); font-style: italic; font-size: 16px; color: var(--gold-bright); margin-bottom: 12px; font-weight: 500; }
.cta-card .value { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--cream); line-height: 1.45; }
.cta-card .value em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.cta-card a { transition: color 0.3s; }
.cta-card a:hover { color: var(--gold-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cream-deep); color: var(--ink-deep); border-top: 1px solid var(--line); padding: 100px 0 36px; position: relative; }
.foot-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 70px; max-width: 1360px; margin: 0 auto 70px; padding: 0 60px; }
.foot-brand .logo-foot { height: 160px; width: auto; display: block; margin-bottom: 24px; mix-blend-mode: multiply; }
.foot-brand p { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 340px; font-weight: 400; }
.foot-brand p em { font-family: var(--f-classic); font-style: italic; color: var(--gold); }
.foot-col h5 { font-family: var(--f-classic); font-style: italic; font-size: 19px; color: var(--ink); margin-bottom: 26px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { font-size: 15px; color: var(--muted); transition: color 0.3s, padding 0.3s; font-weight: 400; display: inline-block; }
.foot-col a:hover { color: var(--gold); padding-left: 8px; }
.foot-contact li { font-size: 15px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.foot-contact li strong { display: block; font-family: var(--f-classic); font-style: italic; font-size: 14px; color: var(--gold); margin-bottom: 4px; font-weight: 600; }
.foot-contact a { color: var(--muted); display: inline; padding: 0; }
.foot-contact a:hover { color: var(--gold); padding-left: 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1360px; margin: 0 auto; padding: 28px 60px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 24px; }
.socials a { color: var(--muted); transition: color 0.3s; }
.socials a:hover { color: var(--gold); }

/* ============================================================
   INTERIOR PAGE LAYOUT
   ============================================================ */
.page-container { padding: 90px 0 120px; background: var(--cream); }
.two-column-layout { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: start; }

/* Rich text content */
.rich-text h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink-deep); margin-bottom: 28px; line-height: 1.2; }
.rich-text h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; color: var(--ink); margin: 48px 0 18px; letter-spacing: -0.01em; }
.rich-text p { font-size: 17px; line-height: 1.8; color: var(--ink); margin-bottom: 24px; }
.rich-text ul { margin: 20px 0 28px 0; list-style: none; }
.rich-text ul li { font-size: 16px; line-height: 1.7; color: var(--ink); padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.rich-text ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold-bright); font-weight: 600; }
.rich-text ul li strong { font-weight: 700; color: var(--ink-deep); }
.rich-text blockquote { margin: 40px 0; padding: 30px 36px; border-left: 3px solid var(--gold-bright); background: var(--cream-deep); font-family: var(--f-display); font-style: italic; font-size: 1.15em; color: var(--ink-soft); line-height: 1.65; border-radius: 0 8px 8px 0; }

/* Sidebar */
.sidebar { position: sticky; top: 120px; }
.sidebar-widget { background: var(--cream-deep); border: 1px solid var(--line); border-radius: 12px; padding: 30px; margin-bottom: 20px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.sidebar-widget h4 { font-family: var(--f-display); font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-widget:first-child h4 { color: var(--ink); border-bottom-color: var(--line); }
.sidebar-nav { list-style: none; }
.sidebar-nav li { border-bottom: 1px solid var(--line); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a { display: block; padding: 11px 0; font-size: 14px; color: var(--muted); transition: color 0.3s, padding 0.3s; font-weight: 500; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--gold); padding-left: 8px; }
.sidebar-nav a.active { font-weight: 700; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form-wrap { background: var(--cream-deep); padding: 40px; border-radius: 12px; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 0; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.form-control { width: 100%; padding: 14px; border: 1px solid rgba(20,52,84,0.2); border-radius: 8px; font-family: var(--f-body); font-size: 15px; color: var(--ink); background: var(--cream); transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--gold-bright); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-message { margin-bottom: 24px; }
.submit-btn { width: 100%; padding: 16px; background: var(--gold-bright); color: var(--cream); border: none; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; font-family: var(--f-body); font-size: 15px; transition: background 0.3s ease; }
.submit-btn:hover { background: var(--gold); }
.contact-info-box { background: var(--ink-deep); color: var(--cream); padding: 50px 40px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.contact-info-box h3 { font-family: var(--f-display); font-size: 28px; margin-bottom: 20px; }
.contact-info-box p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.info-group { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.info-group:last-child { margin-bottom: 0; border-bottom: none; }
.info-group h5 { color: var(--gold-bright); font-family: var(--f-display); font-size: 20px; margin-bottom: 10px; }
.info-group p, .info-group a { font-size: 16px; line-height: 1.6; color: var(--cream); }
.info-group a { text-decoration: none; display: block; }
.info-group a:hover { color: var(--gold-bright); }
.form-notice { font-size: 13px; color: var(--muted); margin-top: 16px; font-style: italic; }
.form-success { background: #d4edda; color: #155724; padding: 14px 18px; border-radius: 8px; font-size: 15px; margin-bottom: 20px; }
.form-error { background: #f8d7da; color: #721c24; padding: 14px 18px; border-radius: 8px; font-size: 15px; margin-bottom: 20px; }

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar nav#site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav#site-nav { top: 46px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 48px; }
  .about-head, .about-body { gap: 60px; }
  .cta-grid { gap: 60px; }
}

@media (max-width: 900px) {
  nav#site-nav { padding: 14px 24px; }
  nav#site-nav.scrolled { padding: 10px 24px; }
  .logo-img { height: 80px; }
  nav#site-nav.scrolled .logo-img { height: 60px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }

  .video-hero { padding: 0 24px; }
  .wrap { padding: 0 24px; }
  .about { padding: 90px 0 70px; }
  .about-head, .about-body { grid-template-columns: 1fr; gap: 40px; }
  .services { padding: 80px 0; }
  .services-head { grid-template-columns: 1fr; gap: 30px; }
  .svc-row { grid-template-columns: 50px 1fr; }
  .svc-desc, .svc-arrow { display: none; }
  .pillar { grid-template-columns: 1fr; min-height: auto; }
  .pillar-media { min-height: 280px; }
  .pillar.reverse .pillar-media { order: 0; }
  .pillar-copy { padding: 50px 24px; }
  .cta-grid { grid-template-columns: 1fr; gap: 50px; padding: 0 24px; }
  .cta-right { padding-top: 0; }
  .foot-top { grid-template-columns: 1fr; gap: 36px; padding: 0 24px; }
  .foot-bottom { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
  .two-column-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .inner-hero-content { padding: 100px 24px 0; }
  .cta-section { padding: 80px 0 100px; }
}

@media (max-width: 600px) {
  .hero-lede { font-size: 16px; }
  .detail-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   WP CUSTOM LOGO FIX
   ============================================================ */
.custom-logo-link { display: inline-block; }
.custom-logo-link img { height: 120px; width: auto; mix-blend-mode: multiply; transition: height 0.4s var(--ease); }
nav#site-nav.scrolled .custom-logo-link img { height: 80px; }

/* ============================================================
   ADMIN NOTICES IN THEME PAGES
   ============================================================ */
.devmaritime-admin-notice { background: #fff3cd; border-left: 4px solid #ffc107; padding: 12px 16px; margin: 16px 0; border-radius: 4px; }

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners {
  padding: 120px 0 130px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.partners-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 72px;
}
.partners-head .left { padding-top: 8px; }
.partners-head .h2 { margin-top: 16px; }
.partners-sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 460px;
  font-weight: 300;
}

/* Grid of partner cards */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.partner-card {
  background: var(--cream);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.partner-card:hover::before { opacity: 1; }
.partner-card > * { position: relative; z-index: 1; }

/* Logo area */
.partner-logo {
  height: 64px;
  display: flex;
  align-items: center;
}
.partner-logo img {
  max-height: 64px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.4s, opacity 0.4s;
}
.partner-card:hover .partner-logo img {
  filter: grayscale(0) brightness(1.2);
  opacity: 1;
}
/* Monogram fallback when no logo */
.partner-mono {
  width: 64px;
  height: 64px;
  background: var(--ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
  transition: background 0.4s;
  flex-shrink: 0;
}
.partner-card:hover .partner-mono {
  background: var(--gold-bright);
  color: var(--ink-deep);
}

/* Partner info */
.partner-info { flex: 1; }
.partner-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  transition: color 0.4s;
}
.partner-card:hover .partner-name { color: var(--cream); }
.partner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.partner-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.4s;
}
.partner-card:hover .partner-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}
.partner-location {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.4s;
}
.partner-card:hover .partner-location { color: rgba(255,255,255,0.6); }
.partner-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold-bright);
  transition: color 0.4s;
}
.partner-card:hover .partner-location svg { color: var(--gold-bright); }

/* Footer of card */
.partner-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}
.partner-card:hover .partner-card-foot { border-top-color: rgba(255,255,255,0.1); }
.partner-reg {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--f-display);
  font-style: italic;
  transition: color 0.4s;
}
.partner-card:hover .partner-reg { color: rgba(255,255,255,0.5); }
.partner-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  text-decoration: none;
}
.partner-link svg { width: 13px; height: 13px; color: var(--muted); transition: color 0.4s; }
.partner-card:hover .partner-link {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}
.partner-card:hover .partner-link svg { color: var(--ink-deep); }

/* "Add Partner" prompt card (admin only) */
.partner-card-add {
  border: 2px dashed var(--line);
  background: var(--cream-deep);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  gap: 12px;
  padding: 44px 40px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.partner-card-add:hover {
  background: var(--cream);
  border-color: var(--gold-bright);
  color: var(--gold);
}
.partner-card-add svg { width: 32px; height: 32px; opacity: 0.4; }

/* Footer address additions */
.foot-addresses { display: flex; flex-direction: column; gap: 0; }
.foot-address-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.foot-address-block:last-child { border-bottom: none; }
.foot-address-block strong {
  display: block;
  font-family: var(--f-classic);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .partners { padding: 80px 0; }
  .partners-head { grid-template-columns: 1fr; gap: 24px; }
  .partners-grid { grid-template-columns: 1fr; }
}
