/* =========================================================
   Manaia Marine — Design System
   Palette: deep navy + warm brass accent + sand off-white
   Fonts: Poppins (headings) / Inter (body)
   ========================================================= */

:root{
  --navy-950:#081c2e;
  --navy-900:#0b2740;
  --navy-800:#123a5c;
  --navy-700:#1c4d76;
  --navy-100:#e7edf3;
  --brass-500:#c9973e;
  --brass-400:#dcae5d;
  --brass-100:#f6ead2;
  --sand-050:#f7f5f0;
  --white:#ffffff;
  --ink-900:#16232e;
  --ink-700:#3c4a56;
  --ink-500:#647383;
  --line:#e3e0d8;
  --success:#2e7d5b;

  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:22px;
  --shadow-sm:0 2px 10px rgba(11,39,64,.08);
  --shadow-md:0 12px 32px rgba(11,39,64,.14);
  --shadow-lg:0 24px 60px rgba(8,28,46,.22);

  --container:1200px;
  --font-head:'Poppins', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
:where(svg){width:1.25em;height:1.25em;display:inline-block;vertical-align:middle;flex:none;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--navy-900);
  line-height:1.15;
  margin:0 0 .5em;
  font-weight:600;
}
h1{font-size:clamp(2.1rem,4vw + 1rem,3.4rem);font-weight:700;letter-spacing:-.01em;}
h2{font-size:clamp(1.6rem,2.6vw + 1rem,2.4rem);letter-spacing:-.01em;}
h3{font-size:1.25rem;}
p{margin:0 0 1em;color:var(--ink-700);}
ul{margin:0;padding:0;}
li{list-style:none;}
.container{max-width:var(--container);margin:0 auto;padding:0 24px;}
section{padding:88px 0;}
@media (max-width:768px){ section{padding:56px 0;} }

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-head);font-weight:600;font-size:.78rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--brass-500);
  margin-bottom:14px;
}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--brass-500);display:inline-block;}

.section-head{max-width:680px;margin:0 0 44px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head p{font-size:1.05rem;}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-head);font-weight:600;font-size:.95rem;
  padding:14px 26px;border-radius:100px;border:2px solid transparent;
  cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn-primary{background:var(--brass-500);color:var(--navy-950);}
.btn-primary:hover{background:var(--brass-400);transform:translateY(-2px);box-shadow:var(--shadow-md);}
.btn-outline{border-color:rgba(255,255,255,.55);color:var(--white);}
.btn-outline:hover{background:rgba(255,255,255,.12);transform:translateY(-2px);}
.btn-navy{background:var(--navy-900);color:var(--white);}
.btn-navy:hover{background:var(--navy-800);transform:translateY(-2px);box-shadow:var(--shadow-md);}
.btn-ghost{border-color:var(--navy-900);color:var(--navy-900);}
.btn-ghost:hover{background:var(--navy-900);color:var(--white);}
.btn-sm{padding:10px 18px;font-size:.85rem;}
.btn svg{width:18px;height:18px;flex:none;}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--line);
}
.header-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 0;gap:24px;}
.brand{display:flex;align-items:center;}
.brand img{height:64px;width:auto;display:block;}

.main-nav{display:flex;align-items:center;gap:6px;}
.main-nav a{
  font-family:var(--font-head);font-weight:500;font-size:.92rem;
  padding:10px 14px;border-radius:100px;color:var(--ink-700);
  transition:background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active{background:var(--navy-100);color:var(--navy-900);}

.header-actions{display:flex;align-items:center;gap:14px;}
.header-phone{display:flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:600;color:var(--navy-900);font-size:.92rem;}
.header-phone svg{width:18px;height:18px;color:var(--brass-500);}

.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;}
.nav-toggle svg{width:26px;height:26px;color:var(--navy-900);}

@media (max-width:980px){
  .site-header{position:sticky;}
  .header-bar{position:relative;}
  .main-nav{
    position:absolute;top:100%;left:0;right:0;
    background:var(--white);box-shadow:var(--shadow-md);
    border-bottom:1px solid var(--line);
    flex-direction:column;align-items:stretch;padding:10px 18px 18px;gap:2px;
    max-height:calc(100vh - 70px);overflow-y:auto;
    transform:translateY(-8px);opacity:0;pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .main-nav.open{transform:translateY(0);opacity:1;pointer-events:auto;}
  .main-nav a{padding:16px 4px;border-bottom:1px solid var(--line);border-radius:0;font-size:1.05rem;}
  .header-phone span{display:none;}
  .nav-toggle{display:inline-flex;}
}
@media (max-width:480px){
  .header-actions .btn-navy.btn-sm{display:none;}
  .brand img{height:48px;}
}

/* ===== Hero ===== */
.hero{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,var(--navy-950) 0%,var(--navy-900) 46%,var(--navy-800) 100%);
  color:var(--white);
  padding:96px 0 110px;
}
.hero-photo{background-size:cover;background-position:center;}
.hero-waves{position:absolute;inset:auto 0 0 0;line-height:0;opacity:.5;}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center;position:relative;z-index:2;}
@media (max-width:960px){ .hero-grid{grid-template-columns:1fr;} }
.hero h1{color:var(--white);}
.hero .lede{color:rgba(255,255,255,.82);font-size:1.15rem;max-width:560px;}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px;}
.hero-stats{display:flex;gap:34px;margin-top:46px;flex-wrap:wrap;}
.hero-stats div strong{display:block;font-family:var(--font-head);font-size:1.6rem;color:var(--brass-400);}
.hero-stats div span{font-size:.82rem;color:rgba(255,255,255,.7);}

.hero-panel{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg);
  padding:30px;
  backdrop-filter:blur(6px);
}
.hero-panel h3{color:var(--white);font-size:1.05rem;}
.hero-panel ul li{
  display:flex;gap:12px;align-items:flex-start;
  padding:10px 0;border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.85);font-size:.94rem;
}
.hero-panel ul li:first-child{border-top:none;}
.hero-panel ul li svg{width:20px;height:20px;flex:none;color:var(--brass-400);margin-top:2px;}

/* Wave divider */
.wave-divider{display:block;width:100%;height:auto;line-height:0;}

/* ===== Trust strip ===== */
.trust-strip{background:var(--navy-900);padding:22px 0;}
.trust-strip .container{display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center;justify-content:space-between;}
.trust-item{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.88);font-size:.88rem;font-family:var(--font-head);font-weight:500;}
.trust-item svg{width:20px;height:20px;color:var(--brass-400);flex:none;}

/* ===== Cards ===== */
.grid{display:grid;gap:26px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:960px){ .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-3,.grid-4,.grid-2{grid-template-columns:1fr;} }

.service-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-md);
  padding:30px 26px;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;flex-direction:column;
}
.service-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md);border-color:transparent;}
.service-icon{
  width:54px;height:54px;border-radius:14px;background:var(--navy-100);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;color:var(--navy-800);
}
.service-icon svg{width:28px;height:28px;}
.service-card h3{margin-bottom:8px;}
.service-card p{font-size:.94rem;flex:1;}
.service-card .card-link{
  margin-top:14px;font-family:var(--font-head);font-weight:600;font-size:.86rem;
  color:var(--navy-800);display:inline-flex;align-items:center;gap:6px;
}
.service-card .card-link svg{width:16px;height:16px;transition:transform .15s ease;}
.service-card:hover .card-link svg{transform:translateX(4px);}

.section-alt{background:var(--sand-050);}

/* Why us */
.feature-row{display:flex;gap:18px;padding:22px 0;border-top:1px solid var(--line);}
.feature-row:first-of-type{border-top:none;}
.feature-row svg{width:26px;height:26px;color:var(--brass-500);flex:none;margin-top:3px;}
.feature-row h4{margin-bottom:4px;}
.feature-row p{margin:0;font-size:.94rem;}

/* Area / map */
.area-list{display:flex;flex-wrap:wrap;gap:10px;}
.area-pill{
  padding:9px 18px;border-radius:100px;background:var(--white);border:1px solid var(--line);
  font-family:var(--font-head);font-weight:500;font-size:.88rem;color:var(--navy-800);
  display:inline-flex;align-items:center;gap:8px;
}
.area-pill svg{width:15px;height:15px;color:var(--brass-500);}

/* Brand strip */
.brand-strip{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:34px 30px;display:grid;grid-template-columns:repeat(4,1fr);gap:28px;align-items:center;
}
@media (max-width:768px){ .brand-strip{grid-template-columns:repeat(2,1fr);} }
.brand-strip .logo-box{display:flex;align-items:center;justify-content:center;height:56px;}
.brand-strip .logo-box img{max-height:100%;max-width:100%;object-fit:contain;}

/* Testimonial */
.testimonial{
  background:var(--navy-900);color:var(--white);border-radius:var(--radius-lg);
  padding:56px;position:relative;overflow:hidden;
}
.testimonial blockquote{font-family:var(--font-head);font-size:1.4rem;font-weight:500;line-height:1.45;margin:0 0 22px;max-width:760px;}
.testimonial cite{font-style:normal;color:var(--brass-400);font-family:var(--font-head);font-weight:600;font-size:.92rem;}
@media (max-width:640px){ .testimonial{padding:34px 24px;} .testimonial blockquote{font-size:1.15rem;} }

/* CTA banner */
.cta-banner{
  background:linear-gradient(120deg,var(--brass-500),var(--brass-400));
  border-radius:var(--radius-lg);padding:52px;display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;
}
.cta-banner h2{color:var(--navy-950);margin-bottom:6px;}
.cta-banner p{color:var(--navy-900);opacity:.85;margin:0;}
.cta-banner .btn-navy:hover{background:var(--navy-950);}

/* Footer */
.site-footer{background:var(--navy-950);color:rgba(255,255,255,.78);padding-top:70px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;padding-bottom:50px;border-bottom:1px solid rgba(255,255,255,.1);}
@media (max-width:860px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .footer-grid{grid-template-columns:1fr;} }
.footer-grid h4{color:var(--white);font-size:.95rem;margin-bottom:16px;}
.footer-grid p{color:rgba(255,255,255,.65);font-size:.92rem;}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:16px;}
.footer-brand img{height:36px;filter:brightness(0) invert(1);}
.footer-brand strong{font-family:var(--font-head);color:var(--white);}
.footer-links li{margin-bottom:10px;}
.footer-links a{font-size:.92rem;color:rgba(255,255,255,.72);transition:color .15s ease;}
.footer-links a:hover{color:var(--brass-400);}
.footer-contact li{display:flex;gap:10px;font-size:.92rem;margin-bottom:12px;color:rgba(255,255,255,.78);}
.footer-contact svg{width:18px;height:18px;color:var(--brass-400);flex:none;margin-top:2px;}
.footer-social{display:flex;gap:10px;margin-top:16px;}
.footer-social a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;transition:background .15s ease;}
.footer-social a:hover{background:var(--brass-500);}
.footer-social svg{width:17px;height:17px;color:var(--white);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding:22px 0;font-size:.82rem;color:rgba(255,255,255,.55);flex-wrap:wrap;gap:10px;}
.footer-bottom a{color:rgba(255,255,255,.55);}
.footer-bottom a:hover{color:var(--brass-400);}

/* ===== Page header (inner pages) ===== */
.page-hero{
  background:linear-gradient(160deg,var(--navy-950),var(--navy-800));
  color:var(--white);padding:64px 0 74px;
}
.page-hero h1{color:var(--white);margin-bottom:10px;}
.breadcrumb{display:flex;gap:8px;align-items:center;font-size:.85rem;color:rgba(255,255,255,.6);margin-bottom:18px;font-family:var(--font-head);}
.breadcrumb a:hover{color:var(--brass-400);}
.page-hero .lede{max-width:640px;color:rgba(255,255,255,.82);font-size:1.05rem;}

/* ===== Services page ===== */
.service-block{
  display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center;
  padding:64px 0;border-bottom:1px solid var(--line);
}
.service-block:last-child{border-bottom:none;}
.service-block.reverse{direction:rtl;}
.service-block.reverse > *{direction:ltr;}
@media (max-width:860px){ .service-block, .service-block.reverse{grid-template-columns:1fr;direction:ltr;} }
.service-visual{
  border-radius:var(--radius-lg);
  background:linear-gradient(145deg,var(--navy-900),var(--navy-700));
  min-height:280px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
}
.service-visual svg{width:100px;height:100px;color:rgba(255,255,255,.9);}
.service-visual::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 80% 20%, rgba(201,151,62,.35), transparent 55%);
}
.service-visual.has-photo{background:var(--navy-900);}
.service-visual.has-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.service-visual.has-photo::after{background:linear-gradient(180deg, transparent 55%, rgba(8,20,33,.55) 100%);}

/* Brands page fleet photo */
.brand-photo-wrap{border-radius:var(--radius-lg);overflow:hidden;}
.brand-photo-wrap img{display:block;width:100%;height:auto;max-height:460px;object-fit:cover;}

/* Home "Where We Work" photo */
.work-photo{border-radius:var(--radius-lg);overflow:hidden;margin-top:22px;}
.work-photo img{display:block;width:100%;height:auto;}
.service-block .tag-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.tag{background:var(--navy-100);color:var(--navy-800);font-size:.82rem;font-family:var(--font-head);font-weight:500;padding:7px 14px;border-radius:100px;}

/* ===== About page ===== */
.value-card{background:var(--sand-050);border-radius:var(--radius-md);padding:26px;}
.value-card svg{width:30px;height:30px;color:var(--brass-500);margin-bottom:14px;}
.timeline{border-left:2px solid var(--line);margin-left:6px;}
.timeline-item{position:relative;padding:0 0 40px 30px;}
.timeline-item::before{content:"";position:absolute;left:-7px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--brass-500);border:3px solid var(--white);box-shadow:0 0 0 2px var(--brass-500);}
.timeline-item:last-child{padding-bottom:0;}
.timeline-item .year{font-family:var(--font-head);font-weight:700;color:var(--navy-900);font-size:.9rem;letter-spacing:.04em;}

.team-card{text-align:center;}
.team-photo{
  width:100%;aspect-ratio:1/1;border-radius:var(--radius-md);
  background:linear-gradient(160deg,var(--navy-800),var(--navy-950));
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.team-photo svg{width:56px;height:56px;color:rgba(255,255,255,.55);}
.team-photo.has-photo{background-size:cover;background-position:center;}
.team-card h3{margin-bottom:2px;}
.team-card .role{color:var(--brass-500);font-family:var(--font-head);font-weight:600;font-size:.85rem;margin-bottom:10px;display:block;}

/* ===== Contact page ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;}
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr;} }
.contact-card{
  background:var(--sand-050);border-radius:var(--radius-lg);padding:36px;
}
.contact-detail{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--line);}
.contact-detail:first-child{border-top:none;padding-top:0;}
.contact-detail svg{width:22px;height:22px;color:var(--brass-500);flex:none;margin-top:2px;}
.contact-detail h4{margin-bottom:3px;font-size:.98rem;}
.contact-detail p{margin:0;font-size:.92rem;}

.fergus-panel{
  background:var(--navy-900);color:var(--white);border-radius:var(--radius-lg);
  padding:40px;text-align:center;
}
.fergus-panel h3{color:var(--white);}
.fergus-panel p{color:rgba(255,255,255,.78);}
.fergus-panel .btn-primary{width:100%;margin-top:10px;}

.enquiry-form{display:flex;flex-direction:column;gap:16px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} }
.field{display:flex;flex-direction:column;gap:6px;}
.field label{font-family:var(--font-head);font-weight:500;font-size:.86rem;color:var(--navy-900);}
.field input,.field select,.field textarea{
  border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;
  font-family:var(--font-body);font-size:.94rem;background:var(--white);color:var(--ink-900);
}
.field textarea{resize:vertical;min-height:120px;}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--brass-400);outline-offset:1px;}
.form-note{font-size:.82rem;color:var(--ink-500);}

/* ===== Blog ===== */
.post-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;
  display:flex;flex-direction:column;transition:transform .18s ease, box-shadow .18s ease;
}
.post-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md);}
.post-thumb{
  height:170px;background:linear-gradient(150deg,var(--navy-800),var(--navy-950));
  display:flex;align-items:center;justify-content:center;
}
.post-thumb svg{width:44px;height:44px;color:rgba(255,255,255,.55);}
.post-body{padding:24px;display:flex;flex-direction:column;gap:10px;flex:1;}
.post-meta{font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:var(--brass-500);font-family:var(--font-head);font-weight:600;}
.post-body h3{margin-bottom:0;}
.post-body p{font-size:.92rem;flex:1;}
.read-more{font-family:var(--font-head);font-weight:600;font-size:.86rem;color:var(--navy-800);display:inline-flex;align-items:center;gap:6px;}
.read-more svg{width:16px;height:16px;transition:transform .15s ease;}
.post-card:hover .read-more svg{transform:translateX(4px);}

.article{max-width:760px;margin:0 auto;}
.article h2{margin-top:1.6em;}
.article p{font-size:1.05rem;}
.article ul{margin:0 0 1.2em;padding-left:1.2em;}
.article li{list-style:disc;margin-bottom:.5em;color:var(--ink-700);}
.article blockquote{
  border-left:3px solid var(--brass-500);margin:1.6em 0;padding:.4em 0 .4em 1.4em;
  font-style:italic;color:var(--navy-800);font-size:1.1rem;
}
.author-box{display:flex;gap:14px;align-items:center;padding:22px;background:var(--sand-050);border-radius:var(--radius-md);margin-top:40px;}
.author-avatar{width:52px;height:52px;border-radius:50%;background:var(--navy-900);flex:none;display:flex;align-items:center;justify-content:center;color:var(--white);font-family:var(--font-head);font-weight:600;}

/* ===== Brands page ===== */
.brand-detail{
  display:flex;gap:34px;align-items:center;background:var(--white);
  border:1px solid var(--line);border-radius:var(--radius-lg);padding:34px;
}
@media (max-width:700px){ .brand-detail{flex-direction:column;text-align:center;} }
.brand-detail .logo-frame{
  width:190px;flex:none;height:100px;display:flex;align-items:center;justify-content:center;
  background:var(--sand-050);border-radius:var(--radius-md);padding:20px;
}
.brand-detail .logo-frame img{max-height:56px;max-width:100%;object-fit:contain;}

/* Misc */
.divider-sm{width:60px;height:3px;background:var(--brass-500);border-radius:3px;margin:0 0 20px;}
.text-center{text-align:center;}
.mt-0{margin-top:0;}
.stack{display:flex;flex-direction:column;gap:18px;}

/* Skip link */
.skip-link{position:absolute;left:-999px;top:auto;background:var(--navy-900);color:#fff;padding:12px 18px;z-index:200;border-radius:0 0 8px 0;}
.skip-link:focus{left:0;top:0;}
