/* ==========================================================================
   GREENWOOD GOLF CLUB — Home Page Styles  (index.html)
   ========================================================================== */


/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
  position    : relative;
  height      : 100vh;
  min-height  : 680px;
  display     : flex;
  align-items : center;
  justify-content: center;
  overflow    : hidden;
}

.hero-bg {
  position            : absolute;
  inset               : 0;
  background-size     : cover;
  background-position : center;
  background-repeat   : no-repeat;
  /* Fallback color while image loads */
  background-color    : #050e07;
}

/* Dark overlay so text stays readable over any photo */
.hero-bg::after {
  content    : '';
  position   : absolute;
  inset      : 0;
  background : linear-gradient(
    160deg,
    rgba(3,7,4,0.72) 0%,
    rgba(5,12,6,0.45) 50%,
    rgba(3,7,4,0.65) 100%
  );
}

@keyframes hShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(10deg) brightness(1.06); }
}

/* Floating ambient orbs */
.orb {
  position       : absolute;
  border-radius  : 50%;
  filter         : blur(80px);
  pointer-events : none;
  animation      : orbFloat 14s ease-in-out infinite alternate;
}

.orb-1 {
  width            : 500px;
  height           : 500px;
  background       : radial-gradient(circle, rgba(40, 100, 55, 0.35), transparent 70%);
  top              : -10%;
  left             : -10%;
  animation-delay  : 0s;
}

.orb-2 {
  width            : 400px;
  height           : 400px;
  background       : radial-gradient(circle, rgba(20, 60, 28, 0.40), transparent 70%);
  bottom           : -5%;
  right            : -5%;
  animation-delay  : -7s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}

/* Pulsing rings */
.hero-ring {
  position  : absolute;
  border    : 1px solid rgba(184, 149, 58, 0.07);
  border-radius: 50%;
  top       : 50%;
  left      : 50%;
  transform : translate(-50%, -50%);
}

.hero-ring:nth-child(1) { width: 700px; height: 700px; animation: ringPulse 9s ease-in-out infinite; }
.hero-ring:nth-child(2) { width: 520px; height: 520px; animation: ringPulse 9s 3s ease-in-out infinite; }
.hero-ring:nth-child(3) { width: 350px; height: 350px; animation: ringPulse 9s 6s ease-in-out infinite; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.1; transform: translate(-50%, -50%) scale(1.06); }
}

/* Diagonal decorative slash */
.hero-slash {
  position  : absolute;
  top       : 0;
  right     : 0;
  width     : 40%;
  height    : 100%;
  background: linear-gradient(108deg, transparent 35%, rgba(25, 55, 32, 0.30) 100%);
  clip-path : polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

/* Hero content */
.hero-content {
  position  : relative;
  z-index   : 2;
  text-align: center;
  padding   : 2rem;
  max-width : 920px;
}

.eyebrow {
  display       : inline-flex;
  align-items   : center;
  gap           : 1rem;
  margin-bottom : 2.5rem;
  animation     : fadeUp 0.9s 0.1s both;
}

.eyebrow span {
  font-size     : 0.62rem;
  letter-spacing: 0.38em;
  color         : var(--gilt);
}

.eyebrow-line {
  width     : 36px;
  height    : 1px;
  background: var(--gold);
}

.hero-title {
  font-family   : 'Playfair Display', serif;
  font-size     : clamp(3.8rem, 9.5vw, 8.5rem);
  font-weight   : 900;
  line-height   : 0.93;
  color         : var(--linen);
  letter-spacing: -0.02em;
  animation     : fadeUp 0.9s 0.25s both;
}

.hero-title em {
  font-style : italic;
  font-weight: 400;
  color      : var(--gilt);
  display    : block;
  font-size  : 0.72em;
  margin-top : 0.1em;
}

/* Decorative divider */
.divider {
  display         : flex;
  align-items     : center;
  justify-content : center;
  gap             : 1rem;
  margin          : 2.8rem auto;
  animation       : fadeUp 0.9s 0.42s both;
}

.divider-line {
  flex  : 0 0 55px;
  height: 1px;
}

.divider-line:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }
.divider-line:last-child  { background: linear-gradient(90deg, var(--gold), transparent); }

.divider-gem {
  width     : 9px;
  height    : 9px;
  background: var(--gold);
  transform : rotate(45deg);
}

.hero-sub {
  font-size     : 0.76rem;
  letter-spacing: 0.28em;
  color         : rgba(240, 233, 214, 0.55);
  animation     : fadeUp 0.9s 0.56s both;
}

.hero-btns {
  display         : flex;
  gap             : 1.2rem;
  justify-content : center;
  flex-wrap       : wrap;
  margin-top      : 3rem;
  animation       : fadeUp 0.9s 0.7s both;
}

/* Scroll indicator */
.scroll-ind {
  position   : absolute;
  bottom     : 2.5rem;
  left       : 50%;
  transform  : translateX(-50%);
  z-index    : 2;
  display    : flex;
  flex-direction: column;
  align-items: center;
  gap        : 0.6rem;
  color      : rgba(240, 233, 214, 0.30);
  font-size  : 0.58rem;
  letter-spacing: 0.3em;
  animation  : fadeUp 1s 1.1s both;
}

.scroll-bar {
  width     : 1px;
  height    : 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation : scrollBar 2.2s ease-in-out infinite;
}

@keyframes scrollBar {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */

.about {
  background: var(--pine);
  position  : relative;
  overflow  : hidden;
}

.about::before {
  content   : '';
  position  : absolute;
  top       : -1px;
  left      : 0;
  right     : 0;
  height    : 110px;
  background: var(--ink);
  clip-path : polygon(0 0, 100% 0, 100% 28%, 0 100%);
}

.about::after {
  content   : '';
  position  : absolute;
  bottom    : -1px;
  left      : 0;
  right     : 0;
  height    : 110px;
  background: var(--ink);
  clip-path : polygon(0 72%, 100% 0, 100% 100%, 0 100%);
}

.about-grid {
  display              : grid;
  grid-template-columns: 1fr 1.1fr;
  gap                  : 6rem;
  align-items          : center;
}

.img-wrap {
  position: relative;
}

.img-frame {
  position      : absolute;
  top           : -18px;
  left          : -18px;
  right         : 18px;
  bottom        : 18px;
  border        : 1px solid rgba(184, 149, 58, 0.22);
  pointer-events: none;
  z-index       : 1;
}

/* Real photo fills the frame */
.about-photo {
  display        : block;
  width          : 100%;
  aspect-ratio   : 3 / 4;
  object-fit     : cover;
  object-position: center;
  position       : relative;
  z-index        : 2;
}

.img-placeholder {
  width      : 100%;
  aspect-ratio: 3 / 4;
  background : linear-gradient(140deg, #1c3d28 0%, #0f2114 100%);
  display    : flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap        : 1.2rem;
  position   : relative;
  z-index    : 2;
}

.img-placeholder img {
  width  : 240px;
  height : auto;
  opacity: 0.75;
}

.img-placeholder p {
  font-size     : 0.75rem;
  letter-spacing: 0.25em;
  color         : rgba(184, 149, 58, 0.8);
  font-weight   : 600;
  text-align    : center;
}

.img-badge {
  position        : absolute;
  bottom          : -1.8rem;
  right           : -1.8rem;
  width           : 125px;
  height          : 125px;
  background      : var(--gold);
  display         : flex;
  flex-direction  : column;
  align-items     : center;
  justify-content : center;
  z-index         : 4;
  clip-path       : polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.img-badge big {
  font-family: 'Playfair Display', serif;
  font-size  : 2.5rem;
  font-weight: 900;
  color      : var(--ink);
  line-height: 1;
}

.img-badge span {
  font-size     : 0.55rem;
  letter-spacing: 0.18em;
  color         : var(--ink);
  font-weight   : 600;
}

.about-text .disp {
  margin-bottom: 2rem;
}

.about-text p {
  font-size  : 0.86rem;
  line-height: 1.97;
  color      : rgba(240, 233, 214, 0.60);
  margin-bottom: 1.4rem;
}

.stats {
  display       : flex;
  gap           : 2.5rem;
  margin-top    : 3rem;
  padding-top   : 2.5rem;
  border-top    : 1px solid rgba(184, 149, 58, 0.14);
}

.stat big {
  font-family: 'Playfair Display', serif;
  font-size  : 2.8rem;
  font-weight: 900;
  color      : var(--gilt);
  display    : block;
  line-height: 1;
}

.stat small {
  font-size     : 0.58rem;
  letter-spacing: 0.2em;
  color         : rgba(240, 233, 214, 0.40);
  margin-top    : 0.4rem;
  display       : block;
}


/* --------------------------------------------------------------------------
   COURSES SECTION
   -------------------------------------------------------------------------- */

.courses {
  background: var(--ink);
}

.courses-hd {
  text-align   : center;
  margin-bottom: 5rem;
}

.courses-lbl {
  justify-content: center;
}

.courses-hd p {
  font-size     : 0.8rem;
  color         : rgba(240, 233, 214, 0.45);
  max-width     : 480px;
  margin        : 1rem auto 0;
  letter-spacing: 0.06em;
  line-height   : 1.7;
}

.c-grid {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 3px;
}

.c-card {
  position  : relative;
  overflow  : hidden;
  aspect-ratio: 3 / 5;
  cursor    : pointer;
}

.c-card-bg {
  position  : absolute;
  inset     : 0;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-card:nth-child(1) .c-card-bg { background: linear-gradient(160deg, #1c4228 0%, #0c1e11 100%); }
.c-card:nth-child(2) .c-card-bg { background: linear-gradient(160deg, #183c22 0%, #0b1c10 100%); }
.c-card:nth-child(3) .c-card-bg { background: linear-gradient(160deg, #142f1c 0%, #09180e 100%); }

.c-card:hover .c-card-bg {
  transform: scale(1.07);
}

.c-overlay {
  position  : absolute;
  inset     : 0;
  background: linear-gradient(to top, rgba(5, 10, 6, 0.97) 0%, rgba(5, 10, 6, 0.15) 55%, transparent 100%);
  transition: opacity 0.4s;
}

.c-card:hover .c-overlay {
  opacity: 0.85;
}

.c-num {
  position   : absolute;
  top        : 2rem;
  right      : 1.8rem;
  font-family: 'Playfair Display', serif;
  font-size  : 5rem;
  font-weight: 900;
  color      : rgba(184, 149, 58, 0.10);
  line-height: 1;
  transition : color 0.4s;
}

.c-card:hover .c-num {
  color: rgba(184, 149, 58, 0.22);
}

.c-content {
  position: absolute;
  bottom  : 0;
  left    : 0;
  right   : 0;
  padding : 2.5rem 2rem;
}

.c-tag {
  font-size     : 0.58rem;
  letter-spacing: 0.3em;
  color         : var(--gilt);
  margin-bottom : 0.7rem;
  font-weight   : 600;
}

.c-title {
  font-family: 'Playfair Display', serif;
  font-size  : 1.8rem;
  font-weight: 700;
  color      : var(--linen);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.c-desc {
  font-size  : 0.76rem;
  color      : rgba(240, 233, 214, 0.45);
  line-height: 1.7;
  max-height : 0;
  overflow   : hidden;
  opacity    : 0;
  transition : max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

.c-card:hover .c-desc {
  max-height: 90px;
  opacity   : 1;
}

.c-holes {
  margin-top    : 1.2rem;
  display       : flex;
  align-items   : center;
  gap           : 0.8rem;
  font-size     : 0.62rem;
  letter-spacing: 0.2em;
  color         : rgba(240, 233, 214, 0.35);
}

.c-holes::before {
  content   : '';
  flex      : 0 0 18px;
  height    : 1px;
  background: var(--gold);
}


/* --------------------------------------------------------------------------
   AMENITIES SECTION
   -------------------------------------------------------------------------- */

.amenities {
  background: var(--pine);
  position  : relative;
}

.amenities::before {
  content   : '';
  position  : absolute;
  top       : -1px;
  left      : 0;
  right     : 0;
  height    : 80px;
  background: var(--ink);
  clip-path : polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.am-hd {
  text-align   : center;
  margin-bottom: 4.5rem;
}

.am-lbl {
  justify-content: center;
}

.am-grid {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 1.5px;
  background           : rgba(184, 149, 58, 0.08);
  border               : 1px solid rgba(184, 149, 58, 0.08);
}

.am-item {
  background: var(--pine);
  padding   : 3rem 2.5rem;
  position  : relative;
  overflow  : hidden;
  transition: background 0.4s;
}

.am-item::after {
  content         : '';
  position        : absolute;
  bottom          : 0;
  left            : 0;
  width           : 100%;
  height          : 2px;
  background      : var(--gold);
  transform       : scaleX(0);
  transform-origin: left;
  transition      : transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.am-item:hover {
  background: rgba(28, 61, 36, 0.85);
}

.am-item:hover::after {
  transform: scaleX(1);
}

.am-icon {
  width           : 46px;
  height          : 46px;
  border          : 1px solid rgba(184, 149, 58, 0.30);
  display         : flex;
  align-items     : center;
  justify-content : center;
  margin-bottom   : 1.5rem;
  color           : var(--gold);
  font-size       : 1.05rem;
  transition      : border-color 0.3s, background 0.3s;
}

.am-item:hover .am-icon {
  border-color: var(--gilt);
  background  : rgba(184, 149, 58, 0.08);
}

.am-item h3 {
  font-family  : 'Playfair Display', serif;
  font-size    : 1.08rem;
  font-weight  : 700;
  color        : var(--cream);
  margin-bottom: 0.6rem;
}

.am-item p {
  font-size  : 0.76rem;
  color      : rgba(240, 233, 214, 0.45);
  line-height: 1.8;
}


/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */

.cta {
  background: var(--gold);
  padding   : 5rem 4rem;
  position  : relative;
  overflow  : hidden;
}

.cta::before {
  content   : '';
  position  : absolute;
  top       : 0;
  right     : 0;
  width     : 45%;
  height    : 100%;
  background: rgba(0, 0, 0, 0.07);
  clip-path : polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

.cta-inner {
  max-width       : 1200px;
  margin          : 0 auto;
  display         : flex;
  align-items     : center;
  justify-content : space-between;
  gap             : 3rem;
  flex-wrap       : wrap;
  position        : relative;
}

.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size  : clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color      : var(--ink);
  line-height: 1.1;
}

.cta-text p {
  margin-top    : 0.7rem;
  font-size     : 0.78rem;
  color         : rgba(10, 15, 11, 0.55);
  letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   RESPONSIVE — HOME ONLY
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap                  : 4rem;
  }

  .img-wrap {
    max-width: 400px;
  }

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

  .c-card {
    aspect-ratio: 16 / 9;
  }

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

  .cta {
    padding: 3.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .am-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-wrap: wrap;
  }
}
