/* Atkinsons Coaches of Ripon - Brand colours */
:root {
  --atkinsons-blue: #00aef1;
  --atkinsons-red: #ee4035;
  --atkinsons-orange: #f78d1f;
  --atkinsons-text: #242021;
  --atkinsons-bg: #fafafa;
  --white: #fff;
  --shadow: 0 2px 12px rgba(36, 32, 33, 0.08);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--atkinsons-text);
  background: var(--atkinsons-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--atkinsons-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 52px;
  width: auto;
}

/* Main nav - desktop */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--atkinsons-text);
  font-weight: 500;
  padding: 0.25rem 0;
}

.main-nav a:hover {
  color: var(--atkinsons-blue);
  text-decoration: none;
}

/* Hamburger - 3 brand colours */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  background-color: var(--atkinsons-blue);
}

.hamburger span:nth-child(2) {
  background-color: var(--atkinsons-red);
}

.hamburger span:nth-child(3) {
  background-color: var(--atkinsons-orange);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Diagonal high top-left to low bottom-right: peach/orange → red → blue */
  background: linear-gradient(
    135deg,
    rgba(247, 141, 31, 0.85) 0%,
    rgba(238, 64, 53, 0.75) 50%,
    rgba(0, 174, 241, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--white);
  opacity: 0.98;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--white);
  color: var(--atkinsons-text);
}

.btn-primary:hover {
  text-decoration: none;
}

/* Sections */
.content-section {
  padding: 4rem 1.5rem;
}

.content-section--alt {
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-section--sash {
  position: relative;
  background: var(--white);
}

/* Logo sash - single strip between hero and weddings, diagonal brand colours */
.logo-sash {
  width: 100%;
  height: 40px;
  background: url('../images/Logo.webp') center center / cover no-repeat;
  background-color: var(--atkinsons-bg);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.content-section h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--atkinsons-text);
}

.content-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--atkinsons-orange),
    var(--atkinsons-red),
    var(--atkinsons-blue)
  );
  border-radius: 2px;
}

.content-section p {
  margin: 0 0 1rem;
}

.content-section p:last-of-type {
  margin-bottom: 0;
}

.services-intro {
  margin-top: 1.25rem;
  font-weight: 600;
}

.services-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.25rem 1rem;
}

.services-list li {
  margin: 0;
}

/* Gallery */
.gallery-section {
  padding: 3rem 1.5rem;
  background: var(--atkinsons-bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Contact section & form */
.contact-section {
  padding: 4rem 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--atkinsons-text);
}

.contact-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--atkinsons-orange),
    var(--atkinsons-red),
    var(--atkinsons-blue)
  );
  border-radius: 2px;
}

.container--form {
  max-width: 560px;
}

.form-message {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.form-message--success {
  background: rgba(0, 174, 241, 0.12);
  color: var(--atkinsons-text);
  border: 1px solid var(--atkinsons-blue);
}

.form-message--error {
  background: rgba(238, 64, 53, 0.1);
  color: var(--atkinsons-text);
  border: 1px solid var(--atkinsons-red);
}

.contact-form {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--atkinsons-text);
}

.form-group .required {
  color: var(--atkinsons-red);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--atkinsons-text);
  background: var(--atkinsons-bg);
  border: 1px solid rgba(36, 32, 33, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--atkinsons-blue);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn--submit {
  margin-top: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--atkinsons-blue),
    #0099d6
  );
  color: var(--white);
}

.btn--submit:hover {
  background: linear-gradient(
    90deg,
    #0099d6,
    var(--atkinsons-blue)
  );
  color: var(--white);
}

.contact-details-inline {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(36, 32, 33, 0.1);
  font-size: 0.95rem;
}

.contact-details-inline p {
  margin: 0.35rem 0;
}

.contact-details-inline a {
  color: var(--atkinsons-blue);
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Map section - full width, 250px height, grey overlay */
.map-section {
  width: 100%;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.map-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  min-width: 100%;
  min-height: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 32, 33, 0.4);
  pointer-events: none;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 3rem 1.5rem 2rem;
  background: var(--atkinsons-text);
  color: var(--white);
  text-align: center;
}

.footer-sash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  /* Diagonal high top-left to low bottom-right: peach/orange → red → blue */
  background: linear-gradient(
    135deg,
    var(--atkinsons-orange) 0%,
    var(--atkinsons-red) 50%,
    var(--atkinsons-blue) 100%
  );
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.site-footer h2::after {
  display: none;
}

.contact-details {
  margin: 0 0 1.5rem;
}

.contact-details p {
  margin: 0.5rem 0;
}

.site-footer a {
  color: var(--atkinsons-blue);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--atkinsons-orange);
}

.footer-credit {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-credit a {
  color: var(--white);
}

.footer-credit--pulse {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-credit--pulse a {
  color: rgba(255, 255, 255, 0.9);
}

/* Legal / text pages */
.page-content {
  padding: 6rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.page-content h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  color: var(--atkinsons-text);
}

.page-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--atkinsons-text);
}

.page-content p,
.page-content ul {
  margin: 0 0 1rem;
}

.page-content ul {
  padding-left: 1.25rem;
}

.page-content a {
  color: var(--atkinsons-blue);
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(36, 32, 33, 0.08);
  }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .services-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
    padding: 5rem 1rem 3rem;
  }

  /* Disable parallax on small screens for smoother scroll and iOS compatibility */
  .hero-bg {
    background-attachment: scroll;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
