/*
Theme Name: Sarah Miles
Theme URI: https://thesarahmiles.co.uk
Author: Custom
Description: A clean, editorial-style theme with a hero slider and modern sections.
Version: 1.0.0
Text Domain: sarahmiles
*/

:root {
  --bg: #f7f3ef;
  --text: #2b2b2b;
  --muted: #6c6c6c;
  --accent: #d46b6b;
  --accent-2: #caa48e;
  --card: #ffffff;
  --line: #e5ddd4;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 239, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  max-height: 40px;
  width: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: none;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links.active {
  display: flex;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--bg);
  flex-direction: column;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hero {
  margin-top: 0;
}

.slider {
  position: relative;
  overflow: hidden;
  background: #d9d3cc;
}

.slider-track {
  display: flex;
  transition: transform 600ms ease;
}

.slide {
  min-width: 100%;
  position: relative;
  color: white;
}

.slide img {
  width: 100%;
  height: clamp(260px, 46vw, 520px);
  object-fit: cover;
  filter: brightness(0.85);
}

.slide-content {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 560px;
}

.slide-content .meta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  opacity: 0.8;
}

.slide-content h1 {
  font-size: clamp(26px, 4vw, 44px);
  margin: 10px 0 6px;
}

.slide-content p {
  font-size: 16px;
  opacity: 0.9;
}

.slider-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.slider-controls button {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.section p {
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.section-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.tile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.tile .image {
  border-radius: 12px;
  overflow: hidden;
  background: #e9e1d9;
}

.tile .accent {
  height: 12px;
  width: 80px;
  background: var(--accent);
  border-radius: 999px;
  margin-top: 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    border: none;
  }
}

@media (max-width: 900px) {
  .grid-two,
  .section-tiles,
  .tile,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slide-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 600px) {
  .slider-controls { display: none; }
  .section { padding: 40px 0; }
  .card { padding: 16px; }
}
