/* ==========================================================================
   AMP Pool & Spa - Global Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  overflow-x: hidden;
}

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

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

/* --------------------------------------------------------------------------
   Site header (shared across all pages)
   -------------------------------------------------------------------------- */
.site-header {
  background: #702963;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav__link {
  color: #fff;
  padding: 0.25rem 0.5rem;
}

.site-nav__link:hover,
.site-nav__link--active {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Main content wrapper
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* --------------------------------------------------------------------------
   Site footer (shared across all pages)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #702963;
  color: #fff;
  padding: 2rem;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Global responsive (header & footer)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .site-logo {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .site-nav__list {
    gap: 0.5rem;
    justify-content: center;
  }

  .site-nav__link {
    font-size: 0.9rem;
    padding: 0.25rem 0.35rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
    margin-top: 3rem;
  }

  .site-footer__copyright {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    flex-direction: column;
    align-items: center;
  }

  .site-nav__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Home page
   ========================================================================== */

.home-hero {
  /* background: linear-gradient(135deg, #702963 0%, #8a3d7a 100%); */
  color: #fff;
  padding: 4rem 2rem;
  height: 500px;
  text-align: center;
  /* background-image: url("../images/poolhaus-pool-1920.jpg"); */
  background: 
  linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
  url("../images/poolhaus-pool-1920.jpg");
  background-size: cover;
  background-position: center;
}


.home-hero__title {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

.home-hero__subtitle {
  margin: 0;
  margin-bottom: 3rem;
  font-size: 1.25rem;
  opacity: 0.95;
}

.home-hero-logo {
  margin-top: calc(2 rem + 10px);
  text-align: center;
}

.home-hero-logo__image {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: brightness(1.05);
}

.home-intro {
  padding: 3rem 2rem;
  text-align: center;
}

.home-intro__heading {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.home-intro__text {
  margin: 0 auto;
  max-width: 600px;
}

.home-intro__license {
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #702963;
  letter-spacing: 0.02em;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border-top: 1px solid #e5eaee;
  border-bottom: 1px solid #e5eaee;
}

.home-quick-links__link {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  color: #702963;
  border: 2px solid #702963;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-quick-links__link:hover {
  background: #702963;
  color: #fff;
}

.home-gallery-preview {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-gallery-preview__heading {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.home-gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.home-gallery-preview__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-gallery-preview__link {
  display: inline-block;
  font-weight: 600;
  color: #702963;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.home-gallery-preview__link:hover {
  color: #8a3d7a;
}

@media (max-width: 600px) {
  .home-gallery-preview__grid {
    grid-template-columns: 1fr;
  }
}

.home-cta {
  padding: 2rem;
  text-align: center;
  background: #f0f6f9;
}

.home-cta__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #702963;
  color: #fff;
  border-radius: 4px;
}

.home-cta__link:hover {
  background: #8a3d7a;
}

@media (max-width: 768px) {
  .home-hero-logo {
    margin-top: calc(1.5rem + 10px);
  }

  .home-hero-logo__image {
    max-width: 200px;
  }

  .home-hero {
    height: 380px;
    padding: 2.5rem 1.25rem;
  }

  .home-hero__title {
    font-size: 1.75rem;
  }

  .home-hero__subtitle {
    font-size: 1rem;
  }

  .home-intro {
    padding: 2rem 1.25rem;
  }

  .home-intro__heading {
    font-size: 1.4rem;
  }

  .home-intro__text {
    font-size: 0.95rem;
  }

  .home-intro__license {
    font-size: 0.85rem;
  }

  .home-quick-links {
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .home-quick-links__link {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
  }

  .home-gallery-preview {
    padding: 2rem 1.25rem;
  }

  .home-gallery-preview__heading {
    font-size: 1.25rem;
  }

  .home-cta {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .home-hero-logo {
    margin-top: calc(1.25rem + 10px);
  }

  .home-hero-logo__image {
    max-width: 180px;
  }

  .home-hero {
    height: 380px;
    padding: 2rem 1rem;
  }

  .home-hero__title {
    font-size: 1.5rem;
  }

  .home-hero__subtitle {
    font-size: 0.95rem;
  }

  .home-quick-links__link {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Services page
   ========================================================================== */

.services-page-header {
  background: #702963;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.services-page-header__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.services-page-header__subtitle {
  margin: 0;
  opacity: 0.9;
}

.services-list {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-list__item {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.services-list__item:last-child {
  border-bottom: none;
}

.services-list__item:nth-child(even) {
  flex-direction: row-reverse;
}

.services-list__image {
  flex-shrink: 0;
  width: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e8ec;
}

.services-list__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.services-list__content {
  flex: 1;
  min-width: 0;
}

.services-list__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.services-list__description {
  margin: 0;
  color: #444;
}

@media (max-width: 768px) {
  .services-page-header {
    padding: 2rem 1.25rem;
  }

  .services-page-header__title {
    font-size: 1.6rem;
  }

  .services-list {
    padding: 2rem 1.25rem;
  }

  .services-list__item {
    padding: 1.5rem 0;
    gap: 1.25rem;
  }

  .services-list__item,
  .services-list__item:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
  }

  .services-list__image {
    width: 100%;
  }

  .services-list__image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .services-page-header__title {
    font-size: 1.4rem;
  }

  .services-list__image img {
    height: 180px;
  }
}

/* ==========================================================================
   Gallery page
   ========================================================================== */

.gallery-page-header {
  background: #702963;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.gallery-page-header__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.gallery-page-header__subtitle {
  margin: 0;
  opacity: 0.9;
}

.gallery-grid {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-grid__item {
  position: relative;
  background: #e8eef1;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(112, 41, 99, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-grid__item:hover {
  box-shadow: 0 6px 20px rgba(112, 41, 99, 0.15);
  transform: translateY(-2px);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(112, 41, 99, 0.92));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-grid__item:hover .gallery-grid__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder until real images are added */
.gallery-grid__placeholder {
  width: 100%;
  height: 100%;
  background: #e0e8ec;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-page-header {
    padding: 2rem 1.25rem;
  }

  .gallery-page-header__title {
    font-size: 1.6rem;
  }

  .gallery-grid {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 500px) {
  .gallery-page-header__title {
    font-size: 1.4rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-page-header {
  background: #702963;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.about-page-header__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.about-page-header__subtitle {
  margin: 0;
  opacity: 0.9;
}

.about-page-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about-page-logo {
  flex-shrink: 0;
  width: 220px;
}

.about-page-logo__image {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .about-page-header {
    padding: 2rem 1.25rem;
  }

  .about-page-header__title {
    font-size: 1.6rem;
  }

  .about-page-body {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
    gap: 2rem;
  }

  .about-page-logo {
    width: 180px;
  }

  .about-content__heading {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .about-page-header__title {
    font-size: 1.4rem;
  }

  .about-page-body {
    padding: 1.5rem 1rem;
  }

  .about-page-logo {
    width: 160px;
  }
}

.about-content__section {
  margin-bottom: 2rem;
}

.about-content__heading {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.about-content__text {
  margin: 0;
  color: #444;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-page-header {
  background: #702963;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.contact-page-header__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.contact-page-header__subtitle {
  margin: 0;
  opacity: 0.9;
}

.contact-content {
  padding: 3rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.contact-content__intro {
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  line-height: 1.6;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: #fff;
  border: 1px solid #e5eaee;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(112, 41, 99, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

a.contact-card:hover {
  border-color: #702963;
  box-shadow: 0 6px 20px rgba(112, 41, 99, 0.12);
  transform: translateY(-2px);
}

.contact-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.contact-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #702963;
  margin-bottom: 0.35rem;
}

.contact-card__value {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.contact-cta {
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #f0f6f9 0%, #e8eef2 100%);
  border: 1px solid #dde4e9;
  border-radius: 12px;
  text-align: center;
}

.contact-cta__heading {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #702963;
}

.contact-cta__text {
  margin: 0 0 1.5rem;
  color: #444;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-cta__btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.contact-cta__btn--primary {
  background: #702963;
  color: #fff;
}

.contact-cta__btn--primary:hover {
  background: #853d76;
  transform: translateY(-1px);
}

.contact-cta__btn--secondary {
  background: #fff;
  color: #702963;
  border: 2px solid #702963;
}

.contact-cta__btn--secondary:hover {
  background: #702963;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .contact-page-header {
    padding: 2rem 1.25rem;
  }

  .contact-page-header__title {
    font-size: 1.6rem;
  }

  .contact-content {
    padding: 2rem 1.25rem;
  }

  .contact-content__intro {
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }

  .contact-card {
    padding: 1.5rem 1rem;
  }

  .contact-cta {
    padding: 1.5rem 1.25rem;
  }

  .contact-cta__heading {
    font-size: 1.2rem;
  }

  .contact-cta__actions {
    flex-direction: column;
  }

  .contact-cta__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-page-header__title {
    font-size: 1.4rem;
  }

  .contact-content {
    padding: 1.5rem 1rem;
  }

  .contact-card__value {
    font-size: 0.95rem;
    word-break: break-word;
  }
}
