/* Tradewinds Property Management — shared styles */

:root {
  --off-white: #fcfaf9;
  --navy: #00478f;
  --light-blue: #73a5f5;
  --sand: #d6be99;
  --teal: #63c5ba;
  --overlay: rgba(0, 0, 0, 0.5);
  --headline-font: 'Playfair Display', serif;
  --content-font: 'Lato', sans-serif;
  --body-font: 'Montserrat', sans-serif;
  --slab-font: 'Roboto Slab', serif;
  --accent-font: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--content-font);
  color: var(--navy);
  background-color: var(--off-white);
}

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

h1, h2, h3 {
  font-family: var(--headline-font);
  font-weight: 600;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--off-white);
}

.site-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .logo img {
  height: 62px;
  width: auto;
}

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

.site-nav a {
  font-family: var(--content-font);
  font-size: 21px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 0;
  transition: opacity 0.2s;
}

.site-nav a:hover {
  opacity: 0.75;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero (home) ---------- */

.hero {
  min-height: 92vh;
  background-image: url('../assets/images/hero-desktop.png');
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  color: var(--off-white);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1px;
}

.hero-buttons {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-link {
  font-family: var(--content-font);
  font-size: 16px;
  color: var(--off-white);
  padding: 10px;
  letter-spacing: 0.5px;
}

.hero-link:hover {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  background-color: var(--off-white);
  color: var(--navy);
  font-family: var(--accent-font);
  border: 2px solid var(--off-white);
  border-radius: 150px;
  padding: 15px 42px 20px;
  letter-spacing: 0.5px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary .btn-title {
  display: block;
  font-size: 27px;
  font-weight: 700;
}

.btn-primary .btn-sub {
  display: block;
  font-family: var(--content-font);
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-submit {
  background-color: var(--navy);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #03366a;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 24px;
}

.section .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

/* About */

.about {
  background-color: var(--off-white);
}

.about-title {
  font-size: 53px;
  text-align: center;
  margin-bottom: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo img {
  width: 100%;
}

.about-text p {
  font-family: var(--body-font);
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 24px;
}

/* Testimonials */

.testimonials {
  background-color: var(--off-white);
  padding-top: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 48px;
  align-items: center;
}

.testimonial-text h3 {
  font-family: var(--body-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 24px;
}

.testimonial-text p {
  font-family: var(--body-font);
  font-size: 22px;
  line-height: 1.45;
}

.testimonial-photo img {
  width: 100%;
}

/* Contact / forms */

.contact-section {
  background-color: var(--off-white);
}

.contact-center {
  max-width: 545px;
  margin: 0 auto;
}

.contact-title {
  font-family: monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 40px;
}

.contact-center .form-field textarea {
  min-height: 96px;
}

.btn-submit-full {
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-details h1 {
  font-size: 38px;
  margin-bottom: 16px;
}

.contact-details > p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-details ul {
  list-style: none;
}

.contact-details li {
  font-size: 17px;
  margin-bottom: 14px;
}

.contact-details li strong {
  font-family: var(--body-font);
}

.contact-details a {
  color: var(--navy);
}

.contact-form {
  background-color: transparent;
}

.contact-form h2 {
  font-size: 26px;
  margin-bottom: 24px;
  text-align: center;
}

.contact-form h2.form-title-sans {
  font-family: var(--body-font);
  font-size: 22px;
  letter-spacing: normal;
  margin-bottom: 28px;
}

.contact-form h2.form-title-slab {
  font-family: var(--slab-font);
  font-size: 32px;
  letter-spacing: normal;
  margin-bottom: 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--content-font);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 6px;
}

.form-field .required {
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  padding: 11px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  background-color: #ffffff;
  color: var(--navy);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--light-blue);
  border-color: var(--light-blue);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  text-align: center;
  margin-top: 24px;
}

/* Subpages (work-with-us / book-now) */

.page-title {
  font-family: var(--slab-font);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--navy);
  text-align: center;
  padding: 36px 24px 0;
}

.subpage-section .contact-grid {
  align-items: center;
}

.info-title-sans {
  font-family: var(--body-font);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: normal;
  margin-bottom: 20px;
}

.info-title-slab {
  font-family: var(--slab-font);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: normal;
  margin-bottom: 16px;
}

.subpage-section .contact-details > p {
  font-family: var(--body-font);
  font-size: 18px;
  margin-bottom: 48px;
}

.contact-list li {
  font-family: var(--body-font);
  font-size: 18px;
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.contact-list svg {
  width: 16px;
  height: 16px;
  fill: var(--navy);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.btn-submit-wide {
  min-width: 285px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

/* Page hero (subpages) */

.page-hero {
  background-image: linear-gradient(rgba(0, 71, 143, 0.65), rgba(0, 71, 143, 0.65)), url('../assets/images/hero-desktop.png');
  background-size: cover;
  background-position: center;
  color: var(--off-white);
  text-align: center;
  padding: 90px 24px;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 700;
}

.page-hero p {
  font-size: 19px;
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ---------- Policies / payment disclosures ---------- */

.policy-hero {
  padding-left: 24px;
  padding-right: 24px;
}

.policy-page {
  background: var(--off-white);
}

.policy-page .inner {
  max-width: 900px;
}

.policy-intro {
  max-width: 820px;
  margin: 0 auto 34px;
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.7;
}

.policy-card {
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid rgba(0, 71, 143, 0.16);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 71, 143, 0.06);
}

.policy-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 27px;
  letter-spacing: 0.2px;
}

.policy-card p,
.policy-card li,
.policy-card address {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
}

.policy-card p + p {
  margin-top: 12px;
}

.policy-card ul {
  padding-left: 22px;
}

.policy-card li + li {
  margin-top: 8px;
}

.policy-card address {
  font-style: normal;
}

.policy-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-acceptance {
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  background: #f4f8fd;
}

.payment-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0;
}

.payment-logos img {
  width: auto;
  max-width: 92px;
  height: 42px;
  object-fit: contain;
}

.payment-logos img[alt="American Express"] {
  height: 48px;
}

.policy-note,
.policy-updated {
  font-size: 14px !important;
}

.booking-payment-summary {
  padding: 48px 24px;
  color: var(--navy);
  background: #f4f8fd;
  border-top: 1px solid rgba(0, 71, 143, 0.12);
}

.booking-payment-summary .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 52px;
  align-items: center;
}

.summary-kicker {
  margin-bottom: 8px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.booking-payment-summary h2 {
  margin-bottom: 14px;
  font-size: 29px;
  line-height: 1.3;
}

.booking-payment-summary p {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
}

.booking-payment-summary p + p {
  margin-top: 10px;
}

.booking-payment-summary a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-updated {
  margin-top: 30px;
  color: rgba(0, 71, 143, 0.78);
  font-family: var(--body-font);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--navy);
  color: var(--off-white);
  padding: 64px 24px 24px;
}

.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 0.9fr;
  gap: 48px;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  width: 300px;
  margin: 0 auto 18px;
}

.footer-brand p {
  font-family: var(--slab-font);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.site-footer h2 {
  font-family: var(--slab-font);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: normal;
  margin-bottom: 20px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  font-family: var(--body-font);
  margin-bottom: 18px;
  font-size: 16px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-social {
  display: flex;
  gap: 30px;
  margin-top: 24px;
  justify-content: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.75;
}

.footer-social svg {
  width: 26px;
  height: 26px;
  fill: var(--off-white);
}

.footer-copyright {
  max-width: 1100px;
  margin: 56px auto 0;
  text-align: center;
  font-family: var(--body-font);
  font-size: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--off-white);
    box-shadow: 0 8px 16px rgba(0, 71, 143, 0.12);
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 71, 143, 0.08);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .hero {
    background-image: url('../assets/images/hero-mobile.png');
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-buttons {
    margin-top: 48px;
  }

  .btn-primary .btn-title {
    font-size: 21px;
  }

  .about-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-text p,
  .testimonial-text h3,
  .testimonial-text p {
    font-size: 18px;
  }

  .about-photo {
    max-width: 340px;
    margin: 0 auto;
  }

  .site-footer .inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .about-title,
  .contact-details h1 {
    font-size: 34px;
  }

  .page-title {
    font-size: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .btn-submit-wide {
    min-width: 0;
    width: 100%;
  }

  .policy-page {
    padding: 54px 18px;
  }

  .policy-intro {
    font-size: 17px;
  }

  .policy-card {
    padding: 22px 20px;
  }

  .policy-card h2 {
    font-size: 23px;
  }

  .policy-card p,
  .policy-card li,
  .policy-card address {
    font-size: 16px;
  }

  .booking-payment-summary .inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
