/* ---------- Colors and sizes: change them here and the whole site updates ---------- */
:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --white: #ffffff;
  --tint: #eef3f9;
  --text: #1c2733;
  --teal: #0f9d8f;      /* accent */
  --amber: #f2a93b;     /* call-to-action buttons */
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; }
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--teal); }
code { background: rgba(0,0,0,.08); padding: 0 .3em; border-radius: 4px; }

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }

/* Visible keyboard focus for accessibility */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0; flex-wrap: wrap; }
.brand { color: var(none); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand span { font-weight: 400; }
.menu-button { display: none; background: none; color: var(--white); border: 2px solid var(--white); border-radius: var(--radius); padding: .4rem .9rem; font: inherit; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--amber); color: var(--navy); padding: .45rem 1rem; border-radius: var(--radius); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #ffbe5c; }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: rgba(255,255,255,.12); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); padding: 2.5rem 0; }
.hero h1 { color: var(--white); margin-top: 0; }
.lead { font-size: 1.15rem; }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.hero-points { list-style: none; margin: 0; padding: 1.2rem 1.4rem; background: rgba(255,255,255,.08); border-left: 4px solid var(--teal); border-radius: var(--radius); }
.hero-points li { padding: .4rem 0; }

/* ---------- Sections and cards ---------- */
.section { padding: 4rem 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-intro { font-size: 1.05rem; }

.card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid #d5dfeb; border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

/* Laptop cards */
.laptop-photo { background: #dde6f1; color: #4a5a6e; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; text-align: center; padding: .5rem; }
.laptop-photo img { width: 100%; height: 100%; object-fit: cover; }
.specs { margin: 0 0 1rem; padding-left: 1.2rem; }
.price { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.note { margin-top: 1.5rem; font-size: .9rem; color: #4a5a6e; }

/* ---------- About ---------- */
.about-grid, .contact-grid { display: grid; gap: 2rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.values li { background: var(--tint); border-left: 4px solid var(--teal); padding: 1rem 1.2rem; border-radius: var(--radius); }

/* ---------- Contact form ---------- */
.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 1.5rem; }
.form label { display: block; font-weight: 600; margin: .9rem 0 .25rem; }
.form input, .form select, .form textarea { width: 100%; padding: .65rem; font: inherit; border: 1px solid #98a8bb; border-radius: var(--radius); }
.form .btn { margin-top: 1.2rem; }
.placeholder-banner { background: #fff3d6; border: 1px solid var(--amber); padding: .7rem; border-radius: var(--radius); font-size: .9rem; max-width: none; }
.form-status { margin: 1rem 0 0; font-weight: 600; color: var(--navy); }
.form .error { color: #b00020; font-size: .9rem; margin: .25rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #071a31; color: #c9d4e3; padding: 1.5rem 0; font-size: .9rem; }
.site-footer p { margin: 0; }

/* ---------- Tablets and larger ---------- */
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phones: collapsible menu ---------- */
@media (max-width: 799px) {
  .menu-button { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Photos update ---------- */
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand span { color: var(--white); font-weight: 700; font-size: 1.15rem; line-height: 1.2; max-width: 11rem; }
.brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

.hero-side { display: grid; gap: 1rem; min-width: 0; }
/* Landscape frame: the photo is cropped to fit, never stretched. Change object-position to move the focus. */
.hero-photo { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 3px solid rgba(255,255,255,.25); background: var(--navy-light); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.sub-heading { margin-top: 3rem; }
.gallery { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.photo { position: relative; margin: 0; background: var(--white); border: 1px solid #d5dfeb; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.photo figcaption { padding: .8rem 1rem; font-size: .95rem; flex: 1; }

/* Before and after stay side by side, even on phones */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 800px; }
.badge { position: absolute; top: .6rem; left: .6rem; padding: .2rem .7rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--white); }
.badge-before { background: var(--navy); }
.badge-after { background: var(--teal); }
@media (max-width: 480px) {
  .before-after { gap: .6rem; }
  .before-after figcaption { padding: .5rem; font-size: .85rem; }
}

.availability { grid-column: 1 / -1; background: var(--white); border: 1px solid #d5dfeb; border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 1.5rem; }
.availability p { margin-bottom: 1rem; }

/* ---------- Logo size by screen width (desktop 100px; smaller on narrow screens) ---------- */
@media (min-width: 800px) and (max-width: 1099px) {
  html { scroll-padding-top: 104px; }
  .brand img { height: 80px; }
  .site-nav ul { gap: .9rem; }
  .site-nav a { font-size: .92rem; }
}
@media (max-width: 799px) {
  html { scroll-padding-top: 88px; }
  .brand img { height: 68px; }
  .brand span { font-size: 1rem; max-width: none; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 76px; }
  .brand img { height: 56px; }
  .brand span { font-size: .9rem; }
  .hero { padding: 1.75rem 0; }
}
