/*
Theme Name: City Club Birmingham
Theme URI: https://www.invitedclubs.com/clubs/city-club-birmingham
Author: Invited Clubs
Author URI: https://www.invitedclubs.com
Description: Tema fiel ao design do City Club Birmingham - Invited Clubs
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cityclub
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #121212;
  background: #fff;
}

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

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

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --color-primary: #121212;
  --color-accent: #6aa3d6;
  --color-white: #ffffff;
  --color-light-bg: #f2f2f2;
  --color-footer-bg: #f2f2f2;
  --color-corp-footer: #dbdbdb;
  --color-text: #121212;
  --color-border: #e0e0e0;
  --font-heading: 'source-serif-pro', Georgia, serif;
  --font-body: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  max-width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #121212;
  transition: all 0.3s;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #121212;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* =============================================
   HERO CAROUSEL
   ============================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(88vh - 60px);
  min-height: 500px;
  overflow: hidden;
  margin-top: 60px;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.3);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #ffffff;
}

/* =============================================
   HERO TEXT SECTION
   ============================================= */
.hero-text-section {
  background: #121212;
  color: #ffffff;
  text-align: center;
  padding: 52px 24px 56px;
}

.hero-text-section h2 {
  font-family: 'source-serif-pro', Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text-section p {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(20px, 2vw, 17px);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,1);
}

.cta-btn {
  display: inline-block;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 32px;
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
  background: #ffffff;
  color: #121212;
}

/* =============================================
   SECTION IMAGE (full width)
   ============================================= */
.section-full-image {
  width: 100%;
  height: 60vw;
  max-height: 680px;
  min-height: 320px;
  overflow: hidden;
}

.section-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =============================================
   CLUB FOOTER
   ============================================= */
.club-footer {
  background-color: #f2f2f2;
  color: #121212;
  padding: 48px 40px 32px;
}

.club-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.club-footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.club-footer-address {
  font-size: 14px;
  line-height: 1.7;
  color: #525252;
  margin-top: 12px;
}

.club-footer-address a {
  color: #525252;
  display: block;
  margin-bottom: 4px;
}

.club-footer-address a:hover {
  text-decoration: underline;
}

.club-footer-col h4 {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #2a2a2a;
  margin-bottom: 16px;
}

.club-footer-col ul {
  list-style: none;
  padding: 0;
}

.club-footer-col ul li {
  margin-bottom: 10px;
}

.club-footer-col ul li a {
  font-size: 14px;
  color: #525252;
  transition: color 0.2s;
}

.club-footer-col ul li a:hover {
  color: #000;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
	
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #525252;
	margin-bottom: 10px;
}

a.social-link:hover{
	color: #000;
}

.social-link svg {
  width: 12px;
  height: 12px;
  fill: #525252;
}

/* =============================================
   CORP FOOTER
   ============================================= */
.corp-footer {
  background: #dbdbdb;
  color: #121212;
  padding: 20px 40px;
}

.corp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.corp-footer-copy {
  font-size: 12px;
  color: #121212;
}

.corp-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.corp-footer-links a {
  font-size: 12px;
  color: #121212;
}

.corp-footer-links a:hover {
  text-decoration: underline;
}

.corp-footer-invited {
  display: flex;
  align-items: center;
}

.corp-footer-invited img {
  height: 44px;
  width: auto;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  width: 100%;
  height: 70vh;
  /*max-height: 480px;*/
  min-height: 260px;
  overflow: hidden;
  margin-top: 60px;
}

.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-form-section {
  padding: 48px 40px 64px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form-section h2 {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.contact-type-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  color: #121212;
  border: 1px solid #ccc;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23121212' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.contact-form-fields {
  margin-top: 32px;
  display: none;
}

.contact-form-fields.visible {
  display: block;
}

.form-row {
  display: grid;
  /*grid-template-columns: 1fr 1fr;*/
  gap: 20px;
  margin-bottom: 0px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #121212;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group label .required {
  color: #c00;
  margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  border: 1px solid #ccc;
  color: #121212;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #6aa3d6;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  display: inline-block;
  background: #121212;
  color: #ffffff;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.form-submit-btn:hover {
  background: #333;
}

/* =============================================
   FLYOUT MENU
   ============================================= */
.flyout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.flyout-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.flyout-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  padding: 24px 0;
}

.flyout-menu.open {
  transform: translateX(0);
}

.flyout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #121212;
  line-height: 1;
}

.flyout-nav {
  padding: 48px 0 0;
}

.flyout-nav-item {
  border-bottom: 1px solid #e8e8e8;
}

.flyout-nav-item a {
  display: block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #121212;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
}

.flyout-nav-item a:hover {
  color: #6aa3d6;
}

/* =============================================
   SCROLL DOWN ARROW
   ============================================= */
.scroll-down-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .club-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  
  .corp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    height: 70vw;
    min-height: 260px;
  }
  
  .club-footer-inner {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    padding: 32px 20px 48px;
  }
  
  .club-footer {
    padding: 32px 20px;
  }
  
  .corp-footer {
    padding: 16px 20px;
  }
}

/* =============================================
   CONTACT FORM — VALIDATION & FEEDBACK STATES
   ============================================= */

/* Field-level error text */
.field-error {
  display: block;
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
  min-height: 16px;
  font-family: var(--font-body);
}

/* Input border highlight on error */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #c00;
  background-color: #fff8f8;
}

/* General error banner above the submit button */
.form-error-banner {
  display: none;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: #c00;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* ── Submit button loading state ── */
.form-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.form-submit-btn.loading .btn-spinner {
  display: inline-block;
}

.form-submit-btn.loading .btn-label {
  opacity: 0.7;
}

.form-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   THANK-YOU MESSAGE
   ============================================= */
.thank-you-message {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 56px;
  animation: fadeInUp 0.45s ease both;
}

.thank-you-inner {
  text-align: center;
  max-width: 520px;
}

.thank-you-icon {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
}

.thank-you-icon svg {
  width: 64px;
  height: 64px;
}

.thank-you-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.thank-you-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 32px;
}

.thank-you-back-btn {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 11px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.thank-you-back-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

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