/* ==========================================================================
   base.css — styles shared by EVERY page
   (colors, fonts, header/nav, footer, buttons, section layout, cards)

   Page-specific styles live in their own file: home.css, about.css,
   gallery.css, reviews.css, area.css, contact.css
   ========================================================================== */

/* ----- Color palette (change a color here, it changes site-wide) ----- */
:root {
  --navy:        #0f2a4a;   /* headers, headings, dark buttons  */
  --red:         #c8322a;   /* accents, call-to-action buttons  */
  --cream:       #f7f4ec;   /* page background                  */
  --cream-dark:  #eee9dc;   /* alternate section background     */
  --ink:         #1c1c1a;   /* main text                        */
  --gray:        #4a4a45;   /* paragraph text                   */
  --muted:       #6b6b64;   /* small / secondary text           */
  --faint:       #8a8578;   /* faintest text (labels, footers)  */
  --green:       #2e7d32;   /* "open" status                    */
  --border:      rgba(15, 42, 74, 0.13);  /* card borders       */
  --nav-link:    #b7c6d9;   /* inactive links in the dark header */
}

/* ----- Reset / defaults ----- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3 { color: var(--navy); }

h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 34px;
  margin: 0 0 12px;
}

/* ----- Layout helpers ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.section { padding-top: 88px; padding-bottom: 88px; }

.section-alt {
  background: var(--cream-dark);
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-intro {
  font-size: 16px;
  color: var(--gray);
  margin: 0 0 44px;
  max-width: 520px;
  line-height: 1.6;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-red     { background: var(--red);  color: #fff; }
.btn-navy    { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-lg      { padding: 16px 32px; font-size: 16px; }
.btn-nav     { padding: 12px 22px; font-size: 14px; white-space: nowrap; }

/* ----- Cards (services, reviews, contact) ----- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 6px;
}

/* ----- Star ratings ----- */
.stars       { color: var(--red); font-size: 16px; }
.stars-label { font-size: 13px; color: var(--gray); font-weight: 600; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(15, 42, 74, 0);
  transition: box-shadow 0.2s ease;
}
/* .scrolled is toggled by js/nav.js when the page scrolls down */
.site-header.scrolled { box-shadow: 0 2px 12px rgba(15, 42, 74, 0.28); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: padding 0.2s ease;
}
.site-header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }

.brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.header-right { display: flex; align-items: center; gap: 32px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--nav-link);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-phone { display: flex; flex-direction: column; align-items: flex-end; }
.nav-phone span {
  font-size: 12px;
  color: var(--nav-link);
  white-space: nowrap;
}
.nav-phone a {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile dropdown menu — opened/closed by js/nav.js */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: var(--navy);
}
.mobile-menu.open { max-height: 420px; }
.mobile-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-inner a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-inner a.mobile-menu-phone { color: var(--nav-link); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--navy);
}
.footer-tag { font-size: 13px; color: var(--faint); }

/* ==========================================================================
   RESPONSIVE (tablet / phone)
   ========================================================================== */

/* Mid widths: not enough room for links + phone block, so hide the phone
   (the red "Call Now" button is still there) and tighten the gaps. */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
  .header-right { gap: 18px; }
  .nav-links { gap: 16px; }
  .brand { white-space: nowrap; font-size: 18px; }
  .header-inner { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-phone  { display: none; }
  .hamburger  { display: flex; }
  .container  { padding-left: 24px; padding-right: 24px; }
  .header-inner { padding-left: 24px; padding-right: 24px; gap: 12px; }
  .header-right { gap: 12px; }
  .brand { white-space: normal; font-size: 17px; }
  .btn-nav { padding: 10px 14px; font-size: 13px; }
  .mobile-menu-inner { padding: 0 24px; }
  .section, .section-alt { padding-top: 56px; padding-bottom: 56px; }
  h2 { font-size: 27px; }
}
