/* ============================================================
   402Golf — styles.css
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-red:         #c8102e;
  --color-red-dark:    #a50d25;
  --color-red-light:   #e8193a;
  --color-black:       #1a1a1a;
  --color-black-soft:  #2e2e2e;
  --color-white:       #ffffff;
  --color-off-white:   #f8f8f8;
  --color-gray-100:    #f0f0f0;
  --color-gray-200:    #e0e0e0;
  --color-gray-400:    #999999;
  --color-gray-600:    #666666;
  --color-gray-800:    #333333;
  --color-text:        #1a1a1a;
  --color-error:       #c8102e;
  --color-error-bg:    #fff0f2;
  --color-success:     #1a6b2e;
  --color-success-bg:  #edf7f0;

  --font-ui: system-ui, -apple-system, sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
  --shadow:    0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);

  --header-h: 72px;
  --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 680px;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-black);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-bottom: 3px solid var(--color-red);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 52px;
  width: auto;
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

.nav__link--cta {
  background: var(--color-red);
  color: var(--color-white) !important;
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  background: var(--color-red-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-ui);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn--primary:hover:not(:disabled) {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
}

.btn--secondary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--color-black-soft);
  border-color: var(--color-black-soft);
}

.btn--outline {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}
.btn--outline:hover:not(:disabled) {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-600);
  border-color: transparent;
}
.btn--ghost:hover:not(:disabled) {
  background: var(--color-gray-100);
  color: var(--color-text);
}

.btn--full { width: 100%; }
.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-black);
}

.section__action {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--color-black) 50%, var(--color-black-soft) 100%);
  opacity: 0.95;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-red);
}

.hero .container { position: relative; }

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--color-red);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: 3rem 0;
  border-bottom: 4px solid var(--color-red);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* ── Card Grid ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--color-red);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.card__body {
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

/* ── Service List ──────────────────────────────────────────── */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  border-left: 4px solid var(--color-red);
  padding-left: 1.25rem;
}

.service-item__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: var(--color-red);
  color: var(--color-white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn--primary {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-white);
}

.cta-band .btn--primary:hover:not(:disabled) {
  background: var(--color-off-white);
  border-color: var(--color-off-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__fieldset {
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__legend {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-black);
  padding: 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-gray-800);
}

.required { color: var(--color-red); }

.form__input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}

.form__textarea { resize: vertical; min-height: 100px; }
.form__select { cursor: pointer; }
.form__select--sm { padding: 0.35rem 0.6rem; font-size: 0.85rem; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.alert--success {
  background: var(--color-success-bg);
  border-color: #a8d5b5;
  color: var(--color-success);
}

.alert--error {
  background: var(--color-error-bg);
  border-color: #f0b8b3;
  color: var(--color-error);
}

/* ── Turnstile spacing ─────────────────────────────────────── */
.cf-turnstile { margin: 0.25rem 0; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  font-size: 0.875rem;
  border-top: 3px solid var(--color-red);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--color-white); }

.footer-nav__social {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav__social:hover { color: var(--color-white); }
.footer-nav__social[aria-label*="Facebook"]:hover  { color: #1877F2; }
.footer-nav__social[aria-label*="Instagram"]:hover { color: #E1306C; }

/* ── Gallery (our-work.html) ───────────────────────────────── */
.gallery-loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-gray-400);
}

.gallery-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-gray-400);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.photo-gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.photo-gallery__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.photo-gallery__caption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.4;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  margin: 0;
}

.lightbox::backdrop {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
}

.lightbox__caption {
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.3); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { display: none; flex-direction: column; }
  .nav--open { display: flex; }
  .nav__toggle { display: flex; }

  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-header { height: auto; position: static; }

  .nav {
    width: 100%;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    gap: 0.25rem;
  }

  .nav__link--cta { margin-left: 0; }

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

  .hero { padding: 3rem 0; }
  .hero__actions { flex-direction: column; }

  .section__action { flex-direction: column; }
  .section__action .btn { width: 100%; justify-content: center; }
}
