/*
Theme Name: Harbor Haven Hotel
Theme URI: https://example.com/harbor-haven-hotel
Author: Codex
Author URI: https://example.com
Description: A classic PHP WordPress theme for boutique hotels, resorts, villas, and guest houses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harbor-haven-hotel
Tags: hotel, travel, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --hh-ink: #1d2528;
  --hh-muted: #657174;
  --hh-line: #dde4e2;
  --hh-paper: #fbfaf6;
  --hh-surface: #ffffff;
  --hh-sea: #0b6b71;
  --hh-sea-dark: #06494d;
  --hh-coral: #d86f45;
  --hh-gold: #c8a15a;
  --hh-shadow: 0 18px 45px rgba(20, 37, 38, 0.12);
  --hh-radius: 8px;
  --hh-max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--hh-ink);
  background: var(--hh-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hh-sea);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--hh-sea-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--hh-ink);
  color: #fff;
  clip: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(221, 228, 226, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(100% - 32px, var(--hh-max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 190px;
}

.custom-logo-link img {
  display: block;
  max-height: 54px;
  width: auto;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.site-title a {
  color: var(--hh-ink);
  text-decoration: none;
}

.site-description {
  margin: 4px 0 0;
  color: var(--hh-muted);
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  background: var(--hh-surface);
  color: var(--hh-ink);
  min-height: 42px;
  padding: 0 12px;
  font-weight: 700;
}

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

.primary-menu ul {
  list-style: none;
}

.primary-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--hh-ink);
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--hh-sea);
}

.header-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--hh-radius);
  background: var(--hh-coral);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(216, 111, 69, 0.24);
}

.header-booking:hover,
.header-booking:focus {
  color: #fff;
  background: #bd5731;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  color: #fff;
  background: linear-gradient(135deg, #0b6b71, #243b3e);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 23, 25, 0.78), rgba(8, 23, 25, 0.2)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--hh-max));
  margin: 0 auto;
  padding: 108px 0 88px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--hh-gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--hh-radius);
  background: var(--hh-sea);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  color: #fff;
  background: var(--hh-sea-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.booking-strip {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--hh-max));
  margin: -42px auto 0;
  padding: 18px;
  border-radius: var(--hh-radius);
  background: var(--hh-surface);
  box-shadow: var(--hh-shadow);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.booking-field label,
.comment-form label,
.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--hh-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  background: #fff;
  color: var(--hh-ink);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: #eef4f2;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-header h2,
.page-title,
.entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
}

.section-header p {
  max-width: 500px;
  margin: 0;
  color: var(--hh-muted);
}

.feature-grid,
.room-grid,
.post-grid,
.amenity-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.room-card,
.post-card,
.amenity-card {
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  background: var(--hh-surface);
  overflow: hidden;
}

.feature-card {
  padding: 28px;
}

.feature-card h3,
.amenity-card h3,
.room-card h3,
.post-card h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.feature-card p,
.amenity-card p,
.room-card p,
.post-card p {
  margin: 0;
  color: var(--hh-muted);
}

.room-card img,
.post-card img,
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.placeholder-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--hh-line);
  background:
    linear-gradient(135deg, rgba(11, 107, 113, 0.18), rgba(216, 111, 69, 0.18)),
    linear-gradient(135deg, #e8efed, #fffaf2);
}

.room-card-content,
.post-card-content,
.amenity-card {
  padding: 22px;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.room-meta li,
.entry-meta {
  color: var(--hh-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.room-price {
  margin-top: 16px;
  color: var(--hh-sea-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
}

.split-content h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.split-content p {
  color: var(--hh-muted);
}

.testimonial {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.18;
}

.testimonial cite {
  display: block;
  margin-top: 20px;
  color: var(--hh-muted);
  font-style: normal;
  font-weight: 800;
}

.site-main {
  width: min(100% - 32px, var(--hh-max));
  margin: 0 auto;
  padding: 70px 0;
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
}

.entry-content {
  margin-top: 22px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.single-hero-image {
  margin: 26px 0;
}

.single-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--hh-radius);
}

.sidebar .widget {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  background: var(--hh-surface);
}

.widget-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.comments-area {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--hh-line);
}

.nav-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.nav-links a,
.nav-links span,
.page-links a,
.page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  background: var(--hh-surface);
  text-decoration: none;
}

.site-footer {
  background: #15282b;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 58px 0;
}

.footer-widget h2,
.footer-brand h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
}

.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget a,
.site-footer a {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  font-size: 0.92rem;
}

.alignwide,
.alignfull {
  max-width: 100%;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 10px 16px 18px;
    background: var(--hh-paper);
    border-bottom: 1px solid var(--hh-line);
  }

  .main-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: block;
  }

  .primary-menu a {
    padding: 12px 0;
  }

  .header-booking {
    display: none;
  }

  .booking-form,
  .feature-grid,
  .room-grid,
  .post-grid,
  .amenity-grid,
  .gallery-grid,
  .content-area,
  .footer-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .section-header p {
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
  }

  .main-navigation {
    top: 68px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 76px 0 72px;
  }

  .booking-strip {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }
}
