/* ===========================================
   QUADRON ELECTRICAL PROJECTS
   main.css — Variables · Reset · Base · Utils
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Open+Sans:wght@400;600&display=swap');

/* ==============================
   CSS CUSTOM PROPERTIES
   ============================== */
:root {
  /* Brand Colours */
  --navy-dark:    #0B1437;
  --navy-mid:     #0D1B4E;
  --navy-light:   #1A2A6C;
  --gold:         #F4B400;
  --gold-light:   #FFD240;
  --gold-dark:    #C99800;
  --black:        #0A0A0A;
  --white:        #FFFFFF;
  --grey-light:   #F5F7FA;
  --grey-mid:     #9AA5BE;
  --text-dark:    #1A1A2E;
  --text-muted:   #6B7A99;
  --danger:       #E03C3C;

  /* Borders / Shadows */
  --border-subtle:  rgba(244, 180, 0, 0.15);
  --border-gold:    rgba(244, 180, 0, 0.4);
  --shadow-sm:      0 2px 12px rgba(0, 0, 0, 0.15);
  --shadow-md:      0 6px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg:      0 16px 60px rgba(0, 0, 0, 0.4);
  --shadow-gold:    0 8px 32px rgba(244, 180, 0, 0.25);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  /* Layout */
  --section-py:     100px;
  --container-max:  1280px;
  --container-px:   24px;

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:    cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast:     0.2s var(--ease);
  --t-base:     0.35s var(--ease);
  --t-slow:     0.6s var(--ease);

  /* Radius */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  28px;
}

/* ==============================
   RESET
   ============================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t-fast);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==============================
   CONTAINER
   ============================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}

/* ==============================
   TYPOGRAPHY
   ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem);  font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 900; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem;   font-weight: 600; }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

strong { font-weight: 600; color: inherit; }

/* ==============================
   SECTION HELPERS
   ============================== */
section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-dark {
  background-color: var(--navy-dark);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 { color: var(--white); }
.section-dark p   { color: var(--grey-mid); }

.section-navy {
  background-color: var(--navy-mid);
}
.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4  { color: var(--white); }
.section-navy p   { color: var(--grey-mid); }

.section-grey { background-color: var(--grey-light); }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 18px; }
.section-title span { color: var(--gold); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 52px;
}

.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   GOLD DIVIDER
   ============================== */
.gold-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 20px;
}
.gold-divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   LAYOUT UTILITIES
   ============================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }

.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ==============================
   SPACING UTILITIES
   ============================== */
.mt-8  { margin-top:    8px; }
.mt-16 { margin-top:   16px; }
.mt-24 { margin-top:   24px; }
.mt-32 { margin-top:   32px; }
.mt-48 { margin-top:   48px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ==============================
   TEXT UTILITIES
   ============================== */
.text-gold   { color: var(--gold) !important; }
.text-white  { color: var(--white) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }

/* ==============================
   RESPONSIVE BREAKPOINTS
   ============================== */
@media (max-width: 1200px) {
  :root { --container-px: 28px; }
}

@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
    --container-px: 20px;
  }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root {
    --section-py: 48px;
    --container-px: 16px;
  }
}

/* ==============================
   REDUCED MOTION
   ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
