/*
Theme Name: Cliff House Friends
Theme URI: https://cliffhousefriends.co.uk/
Author: Simon Roberts Solutions
Description: WordPress theme for Cliff House Friends, Salcombe.
Version: 0.1.4
Text Domain: cliff-house-friends
*/

:root {
  --chf-navy: #262f64;
  --chf-navy-deep: #151d46;
  --chf-gold: #91851b;
  --chf-gold-bright: #b29c18;
  --chf-gold-soft: #b29c18;
  --chf-teal: #1f8ca3;
  --chf-ink: #202542;
  --chf-muted: #5d6473;
  --chf-paper: #fbfaf5;
  --chf-white: #ffffff;
  --chf-line: #ddd8c2;
  --chf-shadow: 0 20px 50px rgba(20, 26, 52, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--chf-ink);
  background: var(--chf-paper);
  font-family: Inter, Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(178, 156, 24, 0.58);
  outline-offset: 3px;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 40px;
  background: var(--chf-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(21, 29, 70, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--chf-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--chf-white);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--chf-gold-bright);
}

.site-main {
  min-height: 70vh;
}

.sve-section {
  position: relative;
  overflow: hidden;
}

.sve-section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.sve-columns {
  display: grid;
}

.sve-heading {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.sve-text p {
  margin: 0;
}

.sve-text p + p {
  margin-top: 18px;
}

.sve-button-wrap {
  display: inline-flex;
}

.sve-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  text-decoration: none;
}

.sve-button:hover {
  filter: brightness(1.06);
}

.sve-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sve-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--chf-line);
  border-top: 5px solid var(--chf-gold);
  border-radius: 8px;
  background: var(--chf-white);
}

.sve-card h3 {
  margin: 0 0 10px;
  color: var(--chf-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
}

.sve-card p {
  margin: 0;
  color: var(--chf-muted);
}

.sve-image {
  margin: 0;
}

.sve-image img {
  height: auto;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  background: var(--chf-navy-deep);
  color: var(--chf-white);
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.site-footer a {
  color: var(--chf-gold-soft);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    padding: 10px 24px;
  }

  .sve-columns,
  .sve-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px;
  }

  .site-brand {
    font-size: 1.1rem;
  }

  .site-brand img {
    width: 46px;
    height: 46px;
  }

  .primary-nav {
    width: 100%;
  }

  .primary-nav ul {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .primary-nav a {
    font-size: 0.9rem;
  }

  .sve-section-inner {
    width: calc(100% - 36px);
  }

  .sve-heading {
    font-size: 2.15rem !important;
  }

  .sve-button-wrap,
  .sve-button {
    width: 100%;
  }

  .sve-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 18px;
  }
}
