/* Dixon Design Build Group — Complete Shared Stylesheet */

:root {
  --navy: #17283a;
  --navy-dark: #101b27;
  --gold: #d7b56d;
  --gold-light: #f0ddb0;
  --cream: #f5f2eb;
  --white: #ffffff;
  --charcoal: #292927;
  --gray: #555550;
  --border: #e1dbcf;
  --max-width: 1180px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
}

.site-header.solid {
  position: relative;
  background: var(--navy);
}

.nav-wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  display: block;
}

.logo img {
  width: auto;
  height: 90px;
  max-width: 280px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 0;
  color: var(--white);
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
}

/* HOMEPAGE HERO */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 20, 30, 0.26) 0%,
      rgba(10, 20, 30, 0.38) 52%,
      rgba(10, 20, 30, 0.56) 100%
    ),
    url('../images/hero.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.hero-content {
  width: min(100%, 820px);
  color: var(--white);
}

.hero-content h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--gold-light);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* INTERIOR PAGE HEADER */

.page-hero {
  padding: 150px 24px 65px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.12;
}

/* CONTENT SECTIONS */

section.block {
  padding: 76px 24px;
}

section.block.alt {
  background: var(--white);
}

.block-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.block h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.18;
}

.block h3 {
  color: var(--navy);
  font-family: var(--font-display);
}

.block p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--gray);
  font-size: 17px;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.service-card {
  padding: 30px 26px;
  background: var(--cream);
  border: 1px solid var(--border);
}

.service-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 15px;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--navy);
}

.btn-center {
  text-align: center;
}

/* CONTACT */

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 28px;
  text-align: center;
}

.contact-info h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 20px;
}

.contact-info p {
  margin: 0;
}

form {
  max-width: 760px;
  margin-top: 30px;
}

input,
textarea,
select {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* FOOTER */

.site-footer {
  padding: 30px 24px;
  background: var(--navy-dark);
  color: var(--gold-light);
  text-align: center;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

/* TABLET */

@media (max-width: 900px) {
  .logo img {
    height: 74px;
    max-width: 235px;
  }

  .nav-links {
    gap: 26px;
  }

  .services-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .nav-wrap {
    width: min(calc(100% - 30px), var(--max-width));
    padding: 12px 0;
  }

  .logo img {
    height: 60px;
    max-width: 190px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(23, 40, 58, 0.98);
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links a {
    padding: 16px 24px;
  }

  .hero {
    min-height: 100svh;
    padding: 120px 22px 60px;
    background-position: 56% center;
  }

  .hero-content h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-content p {
    font-size: 17px;
  }

  .page-hero {
    padding: 120px 22px 52px;
  }

  section.block {
    padding: 56px 22px;
  }
}