/* Gallery, contact form and footer styles. */

/* ---------- Gallery ---------- */

.gallery-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0 110px;
  background: #ffffff;
}

.gallery-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  top: 70px;
  right: -210px;
  background: radial-gradient(circle, rgba(58, 159, 52, .08), rgba(58, 159, 52, 0) 70%);
  pointer-events: none;
}

.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.contact-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.contact-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.gallery-shell {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 24px;
}

.gallery-track {
  --gallery-gap: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gallery-gap) * 2)) / 3);
  gap: var(--gallery-gap);
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform .22s ease;
}

.gallery-slide:hover {
  transform: translateY(-3px);
}

.gallery-image-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 360px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f7faf9;
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.gallery-arrows {
  display: flex;
  gap: 10px;
}

.gallery-arrow,
.lightbox-arrow,
.lightbox-close {
  appearance: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.gallery-arrow {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.15rem;
}

.gallery-arrow:hover,
.lightbox-arrow:hover,
.lightbox-close:hover {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green);
}

.gallery-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 7px;
}

.gallery-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7d3d0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.gallery-dot.active {
  width: 26px;
  background: var(--green);
}

.gallery-count {
  min-width: 82px;
  text-align: right;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.gallery-empty {
  padding: 72px 30px;
  border: 1px dashed #bdd0ca;
  border-radius: 20px;
  background: #f8fbfa;
  text-align: center;
  color: var(--muted);
}

.gallery-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.05rem;
}

.gallery-note {
  margin: 18px 0 0;
  color: var(--grey-blue);
  font-size: .78rem;
}

.gallery-lightbox {
  width: min(1100px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #081a2d;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.gallery-lightbox::backdrop {
  background: rgba(4, 17, 31, .82);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: min(760px, calc(100vh - 34px));
}

.lightbox-image-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 64px 80px 24px;
}

.lightbox-image-frame img {
  display: block;
  width: 100%;
  height: min(650px, calc(100vh - 120px));
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 1.25rem;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 58px;
  border-color: rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.lightbox-arrow:hover { transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- Contact ---------- */

.contact-section {
  position: relative;
  padding: 112px 0 120px;
  background: #f5f9f7;
  border-top: 1px solid #e4ece9;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 34px;
  align-items: stretch;
}

.contact-card,
.enquiry-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(14, 39, 66, .07);
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(58, 159, 52, .08);
  pointer-events: none;
}

.contact-card h3,
.enquiry-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  letter-spacing: -.025em;
}

.contact-card > p,
.enquiry-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  transition: background .2s ease;
}

.contact-item:hover { background: #f7faf9; }
.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--mint);
  color: var(--green);
  line-height: 0;
}

.contact-item-icon i {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.contact-item strong,
.contact-item span {
  display: block;
}

.contact-item strong {
  color: var(--navy);
  font-size: .82rem;
}

.contact-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.55;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-item a:hover span { color: var(--green); }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  background: #ffffff;
  font-size: .78rem;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-link:hover {
  color: var(--green);
  border-color: rgba(19, 115, 68, .4);
  transform: translateY(-2px);
}

.social-link i {
  width: 17px;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

.enquiry-card {
  padding: 38px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full { grid-column: 1 / -1; }
.form-field label {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
}

.form-field label span { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #cdd9d6;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 115, 68, .09);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #98a5af; }

.honeypot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

.form-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-consent a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.submit-button {
  min-width: 165px;
}

.submit-button[disabled] {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.form-status.success { color: var(--green); font-weight: 700; }
.form-status.error { color: #a32b23; font-weight: 700; }

.email-fallback {
  display: none;
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email-fallback.visible { display: inline; }

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: #091d33;
  color: #d7e2ea;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -230px;
  bottom: -260px;
  border-radius: 50%;
  border: 70px solid rgba(58, 159, 52, .08);
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr .9fr;
  gap: 70px;
  padding: 72px 0 58px;
}

.footer-brand-badge {
  display: inline-flex;
  padding: 14px 18px;
  border: 1px solid rgba(19, 115, 68, .14);
  border-radius: 18px 18px 42px 18px;
  background: var(--mint);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.footer-brand-name {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
}

.footer-brand-subname {
  display: block;
  margin-top: 7px;
  color: #61b866;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .46em;
}

.footer-intro {
  max-width: 400px;
  margin: 20px 0 0;
  color: #9fb0be;
  line-height: 1.75;
  font-size: .88rem;
}

.footer-heading {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #aebdca;
  font-size: .84rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 10px;
  color: #aebdca;
  font-size: .84rem;
  line-height: 1.6;
}

.footer-contact a:hover { color: #ffffff; }

.footer-socials {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  color: #dce7ee;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .28);
}

.footer-socials i {
  font-size: 1rem;
  line-height: 1;
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8498a9;
  font-size: .74rem;
}

.footer-bottom a {
  color: #b1c0cb;
  font-weight: 700;
}

.footer-bottom a:hover { color: #ffffff; }

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

@media (max-width: 1020px) {
  .contact-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-heading p { max-width: 700px; }

  .gallery-track {
    grid-auto-columns: calc((100% - var(--gallery-gap)) / 2);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 46px 60px;
  }

  .footer-brand-column { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .gallery-section,
  .contact-section {
    padding: 86px 0 92px;
  }

  .gallery-track {
    --gallery-gap: 14px;
    grid-auto-columns: 100%;
  }

  .gallery-image-frame {
    height: min(390px, 70vh);
  }

  .gallery-controls {
    align-items: center;
  }

  .gallery-count { min-width: 62px; }
  .gallery-arrow { width: 44px; height: 44px; }

  .lightbox-image-frame {
    padding: 64px 48px 20px;
  }

  .lightbox-arrow { width: 38px; height: 52px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }

  .contact-card,
  .enquiry-card {
    padding: 26px 22px;
    border-radius: 18px;
  }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .submit-button { width: 100%; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 58px 0 46px;
  }

  .footer-brand-column { grid-column: auto; }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
  .gallery-slide,
  .social-link,
  .footer-links a,
  .footer-socials a { transition: none; }
}
