/* ============================================================
   OG ROOFING SOLUTIONS LTD — Premium Architectural Design
   Palette: charcoal #141311 / #1B1A18, off-white #F4F1EC,
   construction orange #E8622A, grey #8E8A84. Square corners.
   ============================================================ */

:root {
  --ink: #141311;
  --panel: #1B1A18;
  --panel-2: #232120;
  --paper: #F4F1EC;
  --accent: #E8622A;
  --accent-dark: #C94E1C;
  --grey: #8E8A84;
  --line: rgba(244, 241, 236, 0.14);
  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.container { width: min(1180px, 92%); margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.01em; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.accent-word { color: var(--accent); }
.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-sub { color: var(--grey); max-width: 560px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--paper); margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 0.85rem 1.7rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.82rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { background: var(--ink); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.header-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.logo-link { min-width: 0; display: flex; align-items: center; flex-shrink: 1; }
.logo-img { width: clamp(84px, 10vw, 120px); height: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 1.8rem; align-items: center; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--paper);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-cta { margin-left: 1rem; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 2px solid var(--paper);
  padding: 10px;
  position: relative;
  z-index: 210;
  flex-shrink: 0;
}
.nav-toggle .bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
@media (max-width: 899px) {
  .main-nav {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--panel);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 200;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .main-nav .nav-link { font-size: 1.15rem; display: block; padding: 0.3rem 0; }
  .main-nav .nav-cta { margin: 1.6rem 0 0; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; }
  .main-nav ul { margin-right: 0.5rem; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0.62) 0%, rgba(20, 19, 17, 0.45) 45%, rgba(20, 19, 17, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 8rem 0 4rem;
}
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.4rem;
}
.hero-text {
  max-width: 540px;
  margin-left: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(244, 241, 236, 0.92);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-trust {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 236, 0.78);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  max-width: 560px;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--accent); }
.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.1rem 0;
}
.trust-item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.trust-num { opacity: 0.65; font-weight: 500; }
@media (min-width: 760px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-about-bg, .about { background: var(--paper); color: var(--ink); }
.about { background: var(--paper); color: var(--ink); }
.about .section-sub, .about .lead { color: var(--ink); }
.about p { color: #3d3a36; }
.about .lead strong { color: var(--ink); }

.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
}
.about-media img { box-shadow: var(--shadow); }
.about-points { margin-top: 2rem; display: grid; gap: 1.2rem; }
.about-point { display: flex; gap: 1rem; }
.point-marker {
  flex: 0 0 12px;
  width: 12px; height: 12px;
  background: var(--accent);
  margin-top: 0.5rem;
}
.about-point h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.about-point p { font-size: 0.95rem; }

/* ---------- Services ---------- */
.services { background: var(--ink); }
.service-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .row-flip { direction: rtl; }
  .row-flip .service-media, .row-flip .service-copy { direction: ltr; }
}
.service-media img { box-shadow: var(--shadow); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.service-media img:hover { transform: scale(1.015); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.media-tall img { width: 100%; }
.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.service-copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.service-copy p { color: var(--grey); margin-bottom: 1.2rem; }
.service-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.service-link:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Process ---------- */
.process { background: var(--panel); }
.process-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
}
.process-media img { box-shadow: var(--shadow); }
.process-list { display: grid; gap: 1.3rem; margin-top: 1.5rem; }
.process-list li { display: flex; gap: 1.2rem; align-items: baseline; }
.process-list span {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
  flex: 0 0 34px;
}
.process-list h3 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 0.15rem; }
.process-list p { color: var(--grey); font-size: 0.95rem; }

/* ---------- Projects ---------- */
.projects { background: var(--ink); }
.projects .section-sub { color: var(--grey); }

/* ---------- Craft / Why choose ---------- */
.craft { background: var(--paper); color: var(--ink); }
.craft .lead { color: #3d3a36; }
.craft-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .craft-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}
.craft-items { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin: 1.8rem 0 2.2rem; }
@media (min-width: 640px) { .craft-items { grid-template-columns: 1fr 1fr; } }
.craft-item { border-top: 3px solid var(--accent); padding-top: 0.9rem; }
.craft-item h3 { font-size: 1.02rem; text-transform: uppercase; margin-bottom: 0.3rem; }
.craft-item p { font-size: 0.93rem; color: #55524d; }
.craft-media img { box-shadow: var(--shadow); }

/* ---------- Quote ---------- */
.quote { background: var(--panel); }
.quote-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
}
.quote-contact { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.quote-contact-line { color: var(--grey); margin-bottom: 0.6rem; }
.quote-phone, .quote-email {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  transition: color 0.2s ease;
}
.quote-phone { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent); }
.quote-phone:hover { color: var(--accent-dark); }
.quote-email { font-size: 1rem; margin-top: 0.4rem; }
.quote-email:hover { color: var(--accent); }

.quote-form-wrap { background: var(--panel-2); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  color: var(--paper);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-field textarea { resize: vertical; }
.file-input { padding: 0.6rem 1rem; }
.file-input::file-selector-button {
  font-family: var(--font-head);
  font-weight: 600;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.file-input::file-selector-button:hover { background: var(--accent); color: #fff; }
.file-hint { font-size: 0.82rem; color: var(--grey); margin-top: 0.4rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-submit { width: 100%; text-align: center; border: none; }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.4em; }
.form-status.success { color: #7fc78f; }
.form-status.error { color: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); }
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  text-decoration: none;
  color: var(--paper);
  transition: color 0.2s ease;
  word-break: break-word;
}
a.contact-value:hover { color: var(--accent); }
.contact-email { font-size: clamp(0.95rem, 1.6vw, 1.1rem); }
.contact-card .btn { align-self: flex-start; margin-top: auto; }
.contact-social { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; }
.social-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--accent);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.final-cta .section-title { color: #fff; }
.final-cta .btn-accent { background: var(--ink); }
.final-cta .btn-accent:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0c0b; padding: 3.5rem 0 2rem; }
.footer-inner { display: grid; gap: 2.5rem; }
.footer-logo { width: 130px; }
.footer-nav { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--grey);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--paper); }
.footer-area { color: var(--grey); padding: 0.25rem 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--grey);
  font-size: 0.88rem;
}
@media (min-width: 760px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-credit a { color: inherit; text-decoration: none; }
.vibe-credit { opacity: 0.5; font-weight: 300; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc ---------- */
@media (max-width: 899px) {
  .hero-content { padding-top: 7rem; }
}
