/* Lethusiya General & Construction: light blue & white theme */

:root {
  --blue: #2b8be0;
  --blue-dark: #1f6fb2;
  --blue-darker: #185a91;
  --blue-light: #eaf5fe;
  --blue-alt: #f4f9fe;
  --white: #ffffff;
  --text: #1d2a36;
  --muted: #5a6b7b;
  --border: #d6e8f7;
  --radius: 8px;
  --shadow: 0 6px 20px rgba(31, 111, 178, 0.10);
  --header-h: 72px;
  --font: "Segoe UI", Roboto, Arial, sans-serif;
  --heading: #1190c4; /* bright sky blue, 3.3:1+ on white and light blue (large text) */
  --font-heading: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
}

/* PT Sans Narrow Bold (SIL Open Font License), self-hosted, Latin subset */
@font-face {
  font-family: "PT Sans Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-narrow-700.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1, h2 {
  font-family: var(--font-heading); font-weight: 700; color: var(--heading);
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-dark); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; }

/* Icons: inline SVG line icons */
.icon svg, .btn svg, .whatsapp-float svg, .nav-toggle svg {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-sm { padding: 0.5rem 1.1rem; }
.btn-primary { background: var(--blue-dark); color: #fff; }
.btn-primary:hover { background: var(--blue-darker); }
.btn-outline { background: #fff; border-color: var(--blue-dark); color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-light); }
.btn-whatsapp { background: #25d366; color: #0b3d1f; }
.btn-whatsapp:hover { background: #1fb859; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
}
/* Logo: company name in the heading font, "Lethusiya" centred over the tagline */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.logo-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.9rem;
  color: var(--heading); text-transform: uppercase; letter-spacing: 0.01em;
}
.logo-tag {
  margin-top: 0.2rem; color: var(--text);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 399px) {
  .header-inner { gap: 0.5rem; }
  .logo-name { font-size: 1.6rem; }
  .logo-tag { font-size: 0.56rem; letter-spacing: 0.03em; }
}
/* Very small phones (e.g. 320px): drop the tagline so Login and the menu button fit */
@media (max-width: 359px) { .logo-tag { display: none; } }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 500;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-dark); border-bottom-color: var(--blue); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .header-login { order: 1; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem; }
  .main-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .main-nav li:last-child a { border-bottom: 0; }
}

/* Sections */
section { scroll-margin-top: var(--header-h); }
main { scroll-margin-top: var(--header-h); }
main:focus { outline: none; }
.section { padding: 5rem 0; }
.section-alt { background: var(--blue-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.lead { color: var(--muted); font-size: 1.1rem; }

/* Hero */
.hero { background: var(--blue-light); }
.hero-inner { display: grid; grid-template-columns: 1fr; }
.hero-text { padding: 3.5rem 1rem 2.5rem; }
.hero-text p { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-image img { width: 100%; height: 280px; object-fit: cover; }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .hero-text { align-self: center; padding: 4rem 3rem 4rem max(1rem, calc((100vw - 1140px) / 2)); }
  .hero-image img { height: 100%; border-top-left-radius: 120px; }
}

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-text p { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* Cards (services and why choose us) */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .card-grid.why { grid-template-columns: repeat(4, 1fr); }
}
/* Services: flex instead of grid so an incomplete last row is centred (8 services) */
.card-grid.services { display: flex; flex-wrap: wrap; justify-content: center; }
.card-grid.services > .card { flex: 0 1 100%; position: relative; }
/* Small photo in the top-right corner of each service card (stock photos from Pexels) */
.services .thumb {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 144px; height: 96px; object-fit: cover;
  border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.services .card h3 { margin-right: 150px; }
@media (max-width: 380px) { .services .thumb { width: 112px; height: 75px; } .services .card h3 { margin-right: 118px; } }
@media (min-width: 600px) { .card-grid.services > .card { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (min-width: 860px) { .card-grid.services > .card { flex-basis: calc((100% - 3rem) / 3); } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 1rem;
  border-radius: 12px; background: var(--blue-light); color: var(--blue-dark);
}
.icon svg { width: 28px; height: 28px; }

/* How we work: numbered steps */
.card-grid.steps { list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .card-grid.steps { grid-template-columns: repeat(4, 1fr); } }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%;
  background: var(--blue-dark); color: #fff;
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1;
}

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: #fff;
  padding: 0.7rem 0.85rem; border: 1px solid #6f8fab; border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 139, 224, 0.25);
}
.hint { color: var(--muted); font-size: 0.9rem; margin-top: -0.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: var(--radius); }
.form-status.success { display: block; background: #e7f7ee; color: #14532d; }
.form-status.error { display: block; background: #fdecec; color: #8a1c1c; }
.form-status.info { display: block; background: var(--blue-light); color: var(--blue-darker); }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.info-list li {
  background: var(--blue-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.info-list strong { display: block; color: var(--blue-dark); }

/* Footer */
.site-footer { background: var(--blue-dark); color: #fff; padding: 2.5rem 0; }
/* Keep the floating WhatsApp button clear of the centred © line on phones */
@media (max-width: 599px) { .site-footer { padding-bottom: 6rem; } }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.site-footer p { margin: 0; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #128c4a; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.whatsapp-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
