/* ==========================================================================
   Arbutus Ridge — Global Styles (header, footer, base)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Sans', 'Libre Franklin', Helvetica, Arial, sans-serif;
  color: #666;
  background: #faf8f5;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1a1f1a;
  border-bottom: none;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 44px;
  width: auto;
  /* No filter — keep orange sun visible against dark header */
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-family: 'Libre Franklin', 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.nav-cta {
  background: #c4572a;
  color: #fff !important;
  padding: 10px 22px;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: #d4632f;
  box-shadow: 0 2px 12px rgba(196,87,42,0.25);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* --- Footer --- */
.site-footer {
  background: #1a1f1a;
  color: rgba(245,240,232,0.5);
  padding: 56px 24px 36px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.7;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: rgba(245,240,232,0.35);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245,240,232,0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(245,240,232,0.8); }

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-social a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: rgba(245,240,232,1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(245,240,232,0.25);
}

.footer-developed {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-developed span {
  font-size: 11px;
  color: rgba(245,240,232,0.25);
  letter-spacing: 0.5px;
}

/* --- Shared Page Hero --- */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,61,42,0.35) 0%, rgba(42,61,42,0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 24px;
}

.page-hero-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-content p {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* --- Shared Content Containers --- */
.content-section {
  padding: 64px 24px;
}

.content-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Shared Typography --- */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  color: #1a1f1a;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-label {
  font-family: 'Libre Franklin', 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c4572a;
  margin-bottom: 12px;
}

.body-text {
  font-size: 16px;
  font-weight: 300;
  color: #666;
  line-height: 1.8;
}

.body-text + .body-text {
  margin-top: 20px;
}

/* --- Shared Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #c4572a;
  color: #fff;
}

.btn-primary:hover {
  background: #d4632f;
  box-shadow: 0 4px 20px rgba(196,87,42,0.3);
}

.btn-outline {
  background: transparent;
  color: #c4572a;
  border: 1px solid #c4572a;
}

.btn-outline:hover {
  background: #c4572a;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #1a1f1a;
}

.btn-white:hover {
  background: #f5f0e8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* --- Shared Divider --- */
.divider {
  width: 40px;
  height: 2px;
  background: #c4572a;
  margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .hamburger { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #1a1f1a;
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 32px 32px;
    gap: 0;
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
  }

  .main-nav.open { right: 0; }

  .main-nav a {
    font-size: 15px;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(245,240,232,0.1);
    color: rgba(255,255,255,0.85);
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
    display: block;
  }

  .page-hero { min-height: 320px; }
  .page-hero-content h1 { font-size: 36px; }
  .page-hero-content { padding: 60px 20px; }

  .content-section { padding: 48px 20px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 640px) {
  .page-hero { min-height: 260px; }
  .page-hero-content h1 { font-size: 30px; }

  .footer-links { gap: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #c4572a;
  color: #fff;
  padding: 8px 16px;
  z-index: 2000;
  font-size: 14px;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}
.skip-link:focus {
  top: 0;
}
