/* ==========================================================================
   Lorcan Construction — Design System
   ========================================================================== */

:root {
  /* Brand palette — extracted from logo.jpg */
  --blue: #1A4496;
  --blue-dark: #123878;
  --blue-light: #E8EEF8;
  --ink: #1C1A1B;
  --ink-2: #153A7A;
  --cream: #F2F5FB;
  --cream-2: #E8EDF6;
  --white: #FFFFFF;
  --accent: #DC6338;
  --accent-dark: #C4522C;
  --accent-light: #FDEAE3;
  --text: #1C1A1B;
  --muted: #6D7077;
  --border: #D8DEE8;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(26, 68, 150, 0.08);
  --shadow-md: 0 10px 30px rgba(26, 68, 150, 0.12);
  --shadow-lg: 0 24px 60px rgba(26, 68, 150, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--blue);
  margin: 0 0 .5em;
  line-height: 1.2;
}
p { margin: 0 0 1em; color: var(--muted); line-height: 1.7; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 820px; }

.text-accent { color: var(--accent); }

.ic {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--blue); color: var(--white); }
.btn-dark:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--blue); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--cream); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.9);
  font-size: .82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  gap: 16px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-left span, .topbar-right a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { width: 15px; height: 15px; opacity: .85; }
.badge-est {
  background: var(--accent);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .02em;
}
.topbar-right a:hover { color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 245, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 80px; width: auto; max-width: 320px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 600;
  font-size: .93rem;
  color: var(--blue);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-call {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--blue);
  font-size: .95rem;
}
.header-call .ic { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header quote panel (contact form embedded in header) */
.header-quote-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--blue-dark);
  transition: max-height .35s ease;
}
.header-quote-panel.open { max-height: 220px; }
.quote-form { padding: 20px 24px 22px; max-width: 1200px; margin: 0 auto; }
.quote-form-title { color: var(--white); font-weight: 600; margin-bottom: 12px; font-size: .95rem; }
.quote-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  gap: 10px;
}
.quote-form input, .quote-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .92rem;
}
.quote-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.quote-form select { color: rgba(255, 255, 255, 0.9); }
.quote-form select option { color: #222; }
.quote-form input:focus, .quote-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.14);
}
.quote-form-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: .78rem;
  margin-top: 12px;
}

@media (min-width: 992px) {
  .header-call { display: inline-flex; }
  /* On desktop, keep the quote form permanently visible in the header for max conversion */
  .header-quote-panel { max-height: 220px; }
  .header-quote-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--cream);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero-lead { font-size: 1.08rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--blue); }
.hero-stats span { font-size: .82rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media-main img { width: 100%; height: 420px; object-fit: cover; }
.hero-media-side { display: flex; gap: 14px; margin-top: 14px; }
.hero-media-side img { width: 50%; height: 130px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.hero-floating-card {
  position: absolute;
  top: -22px; right: -18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}
.hero-floating-card .ic { color: var(--accent); }
.hero-floating-card strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.hero-floating-card span { font-size: .76rem; color: var(--muted); }

/* Trust strip */
.trust-strip { background: var(--blue); padding: 22px 0; }
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: .88rem;
  text-align: center;
}
.trust-item .ic { color: var(--accent); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 84px 0; }
.section-tint { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card img { width: 100%; height: 190px; object-fit: cover; }
.service-card-body { padding: 22px 22px 26px; }
.service-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--blue); }
.service-card-body p { margin: 0; font-size: .92rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 460px; object-fit: cover; }
.about-media-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-media-badge strong { display: block; font-family: var(--font-head); font-size: 1.4rem; }
.about-media-badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.check-list { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 500; font-size: .95rem; }
.check-list .ic { color: var(--accent); margin-top: 2px; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-step { text-align: center; padding: 0 8px; }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.process-step p { font-size: .88rem; margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 68, 150, 0.55));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 26px;
  border-left: 4px solid var(--accent);
}
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial-card cite { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--blue); font-style: normal; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  border: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; font-size: .93rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  padding: 70px 0;
  text-align: center;
}
.cta-banner-inner h2 { color: var(--white); }
.cta-banner-inner p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 28px; }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform .2s ease;
}
a.contact-info-card:hover { transform: translateX(4px); }
.contact-info-card .ic { color: var(--accent); }
.contact-info-card h4 { font-size: .9rem; margin: 0 0 2px; color: var(--blue); }
.contact-info-card span { font-size: .92rem; color: var(--muted); font-weight: 500; }

.contact-form { background: var(--cream); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: .84rem; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--blue-dark); color: rgba(255, 255, 255, 0.8); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .brand img { height: 72px; max-width: 280px; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); }
.footer .brand-text strong { color: var(--white); }
.footer .brand-text small { color: rgba(255, 255, 255, 0.65); }
.footer-brand p { color: rgba(255, 255, 255, 0.75); margin: 16px 0; font-size: .9rem; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.footer-social:hover { background: var(--accent); }
.footer-social .ic { width: 17px; height: 17px; }
.footer-links-col h5 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a:hover { color: var(--accent); }
.footer-links-col li { font-size: .9rem; color: rgba(255, 255, 255, 0.75); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   Floating elements
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 86px; right: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 95;
}
.mobile-call-bar .btn { flex: 1; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 56, 120, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .header-quote-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-floating-card { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { height: 320px; }
  .about-media-badge { left: 16px; bottom: -16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 68px; }
  .quote-form-grid { grid-template-columns: 1fr; }
  .brand img { height: 64px; max-width: 260px; }
}

@media (max-width: 640px) {
  .topbar-hide-sm { display: none; }
  .brand img { height: 52px; max-width: 220px; }
  .footer .brand img { height: 56px; max-width: 220px; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 40px; }
  .hero-media-main img { height: 280px; }
  .cta-banner-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
