/* dertynan.com — one-page site for marine electrical services */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --abyc: #0055a5;          /* sampled from the ABYC logos */
  --abyc-dark: #00417f;
  --sea: #e8f0f8;
  --ink: #1c2430;
  --ink-soft: #4b5563;
  --line: #d6dee8;
  --paper: #ffffff;
  --ground: #f5f8fb;
  --ok: #157347;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--abyc); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); font-size: .95em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--abyc); margin-bottom: .75rem;
}
.hero .eyebrow { color: #9cc9ff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8em 1.4em;
  border-radius: 999px;
  background: var(--abyc);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--abyc);
  transition: background .15s, border-color .15s;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
}
.btn:hover { background: var(--abyc-dark); border-color: var(--abyc-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-small { padding: .5em 1em; font-size: .9rem; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #0b1f3a; }
.btn-whatsapp:hover { background: #1fb457; border-color: #1fb457; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,31,58,.96);
  backdrop-filter: blur(6px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #d7e3f2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #fff; }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-deep) url("/public/img/hero.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7,21,39,.96) 0%, rgba(7,21,39,.88) 45%, rgba(7,21,39,.55) 100%);
}
.hero .wrap { padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem); }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #cfdcec; max-width: 56ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-sub { margin-top: 1.5rem; color: #9fb3cc; font-size: .95rem; }

/* Trust strip */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust .wrap {
  max-width: 1200px;
  display: flex; align-items: center; justify-content: center; gap: 2rem 3rem; flex-wrap: wrap;
  padding-top: 1.75rem; padding-bottom: 1.75rem;
}
.trust-item { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.trust-item img { height: 72px; width: auto; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { display: block; color: var(--ink-soft); font-size: .9rem; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.alt { background: var(--ground); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
}
.card h3 { margin-top: .25rem; }
.card p { color: var(--ink-soft); flex: 1; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .95rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .9em; height: .45em;
  border-left: 2.5px solid var(--abyc); border-bottom: 2.5px solid var(--abyc);
  transform: rotate(-45deg);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--sea); color: var(--abyc);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.also { margin-top: 2rem; color: var(--ink-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.about-grid p { font-size: 1.05rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.points li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.points strong { display: block; margin-bottom: .2rem; }
.points span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--abyc); margin-top: .15em; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Form */
.enquiry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(11,31,58,.06);
}
.enquiry h3 { margin-bottom: .25rem; }
.enquiry .muted { margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: .7em .85em;
  border: 1px solid #b9c5d4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--abyc); outline-offset: 1px; border-color: var(--abyc);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .btn { width: 100%; margin-top: .25rem; }
.consent { font-size: .85rem; color: var(--ink-soft); margin-top: .9rem; margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #c5d2e2; padding: 2.5rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-logos { margin-bottom: 1rem; }
.footer-logos img { background: #fff; border-radius: 6px; padding: 6px 10px; }
.site-footer .muted { color: #8fa3bd; }

/* Secondary pages (thanks, 404) */
.page { padding: clamp(3rem, 8vw, 6rem) 0; min-height: 50vh; }
.page h1 { margin-bottom: 1rem; }
.page .ticket {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--sea); color: var(--abyc-dark); padding: .2em .6em; border-radius: 6px; font-weight: 700;
}
.page .actions { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Text-only trust item (no logo) */
.trust-item:not(:has(img)) { padding-left: 1.25rem; border-left: 3px solid var(--abyc); }
.hero .lede a { color: #fff; }
