/*
Theme Name:        AAU OnePage
Theme URI:         https://aaustudio.com
Author:            AAU Studio
Author URI:        https://aaustudio.com
Description:       A professional, fully customisable one-page business theme built for AAU Studio's July promo. Configure every brand token — colours, fonts, hero text, services, stats, and contact details — entirely from the WordPress Customizer. No page builder required. Compatible with Contact Form 7.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           Proprietary — AAU Studio client use only
License URI:       https://aaustudio.com/license
Text Domain:       aau-onepage
Tags:              one-page, business, customizer, custom-colors, custom-logo, contact-form-7
*/

/* =============================================
   BRAND TOKENS — set via Customizer
   ============================================= */
:root {
  --brand-primary:   #1B2B5E;
  --brand-accent:    #C9A84C;
  --brand-light:     #F4F6FB;
  --brand-dark:      #0F1A3A;
  --brand-text:      #1A1A2E;
  --brand-muted:     #6B7280;
  --brand-white:     #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:     10px;
  --shadow:     0 4px 24px rgba(27,43,94,0.10);
  --transition: 0.22s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--brand-text);
  background: var(--brand-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* =============================================
   LAYOUT
   ============================================= */
.aau-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.aau-section        { padding: 80px 0; }
.aau-section--alt   { background: var(--brand-light); }

/* =============================================
   NAVIGATION
   ============================================= */
.aau-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--brand-white);
  border-bottom: 1px solid rgba(27,43,94,0.08);
  padding: 16px 0;
  transition: box-shadow var(--transition);
}
.aau-nav.scrolled { box-shadow: 0 2px 16px rgba(27,43,94,0.10); }
.aau-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aau-nav__logo { display: flex; align-items: center; gap: 10px; }
.aau-nav__logo img { height: 40px; width: auto; }
.aau-nav__site-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}
.aau-nav__site-name span { color: var(--brand-accent); }
.aau-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary);
  color: var(--brand-white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}
.aau-nav__cta:hover { background: var(--brand-accent); color: var(--brand-dark); }

/* =============================================
   HERO
   ============================================= */
.aau-hero {
  padding: 96px 0 72px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #243870 100%);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}
.aau-hero__bg-pattern {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.aau-hero__inner { position: relative; max-width: 760px; }
.aau-hero__eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.18);
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,168,76,0.3);
}
.aau-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.aau-hero__heading em { color: var(--brand-accent); font-style: normal; }
.aau-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.aau-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.aau-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); cursor: pointer; border: none;
  font-family: var(--font-body);
}
.aau-btn--primary { background: var(--brand-accent); color: var(--brand-dark); }
.aau-btn--primary:hover { background: #d4b45a; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,168,76,0.35); }
.aau-btn--outline { background: transparent; color: var(--brand-white); border: 1px solid rgba(255,255,255,0.35); }
.aau-btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* =============================================
   TRUST BAR
   ============================================= */
.aau-trust { background: var(--brand-dark); padding: 18px 0; }
.aau-trust__inner {
  display: flex; align-items: center; gap: 32px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.aau-trust__item {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; color: rgba(255,255,255,0.65); font-size: 0.85rem;
}
.aau-trust__item::before {
  content: '';
  display: inline-block; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A84C' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

/* =============================================
   ABOUT / INTRO
   ============================================= */
.aau-intro__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.aau-intro__label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-accent); margin-bottom: 12px;
}
.aau-intro__heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.22; margin-bottom: 18px;
  color: var(--brand-primary); letter-spacing: -0.02em;
}
.aau-intro__body { color: var(--brand-muted); font-size: 1rem; margin-bottom: 28px; }
.aau-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aau-stat {
  background: var(--brand-light); border-radius: var(--radius);
  padding: 20px; border-left: 3px solid var(--brand-accent);
}
.aau-stat__number {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--brand-primary);
}
.aau-stat__label { font-size: 0.82rem; color: var(--brand-muted); margin-top: 2px; }
.aau-intro__image {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary), #243870);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.aau-intro__image img { width: 100%; height: 100%; object-fit: cover; }
.aau-intro__image-placeholder {
  color: rgba(255,255,255,0.3); font-family: var(--font-display);
  font-size: 0.9rem; text-align: center; padding: 20px;
}

/* =============================================
   SERVICES
   ============================================= */
.aau-section__header { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.aau-section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--brand-primary); letter-spacing: -0.02em; margin-bottom: 12px;
}
.aau-section__sub { color: var(--brand-muted); font-size: 1rem; }
.aau-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aau-service-card {
  background: var(--brand-white);
  border: 1px solid rgba(27,43,94,0.08);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all var(--transition);
}
.aau-service-card:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow); transform: translateY(-3px);
}
.aau-service-card__icon {
  font-size: 1.8rem; margin-bottom: 18px; line-height: 1;
}
.aau-service-card__title {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; color: var(--brand-primary); margin-bottom: 10px;
}
.aau-service-card__body { color: var(--brand-muted); font-size: 0.9rem; line-height: 1.6; }

/* =============================================
   WHY US
   ============================================= */
.aau-features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.aau-feature { display: flex; gap: 16px; align-items: flex-start; }
.aau-feature__dot {
  flex-shrink: 0; width: 38px; height: 38px;
  background: var(--brand-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.aau-feature__dot::after {
  content: '✓';
  color: var(--brand-accent); font-weight: 700; font-size: 0.85rem;
}
.aau-feature__title { font-weight: 600; font-size: 0.95rem; color: var(--brand-primary); margin-bottom: 4px; }
.aau-feature__body  { color: var(--brand-muted); font-size: 0.88rem; }

/* =============================================
   GALLERY
   ============================================= */
.aau-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aau-gallery__item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--brand-light); }
.aau-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.aau-gallery__item:hover img { transform: scale(1.04); }
.aau-gallery__overlay {
  position: absolute; inset: 0; background: rgba(27,43,94,0);
  transition: background var(--transition);
  display: flex; align-items: flex-end;
}
.aau-gallery__item:hover .aau-gallery__overlay { background: rgba(27,43,94,0.55); }
.aau-gallery__caption { color: white; padding: 16px; font-size: 0.85rem; font-weight: 500; opacity: 0; transition: opacity var(--transition); }
.aau-gallery__item:hover .aau-gallery__caption { opacity: 1; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.aau-testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.aau-testimonial {
  background: var(--brand-white); border: 1px solid rgba(27,43,94,0.08);
  border-radius: var(--radius); padding: 28px;
}
.aau-testimonial__quote { font-size: 0.95rem; color: var(--brand-text); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.aau-testimonial__quote::before { content: '\201C'; color: var(--brand-accent); font-size: 1.5rem; vertical-align: -0.2em; line-height: 0; margin-right: 2px; }
.aau-testimonial__author { display: flex; align-items: center; gap: 12px; }
.aau-testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: var(--brand-primary);
  overflow: hidden;
}
.aau-testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.aau-testimonial__name { font-weight: 600; font-size: 0.88rem; color: var(--brand-primary); }
.aau-testimonial__role { font-size: 0.78rem; color: var(--brand-muted); }

/* =============================================
   CONTACT / CTA
   ============================================= */
.aau-cta-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #243870 100%);
  color: var(--brand-white); text-align: center; padding: 96px 0; position: relative; overflow: hidden;
}
.aau-cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.aau-cta-section__inner { position: relative; }
.aau-cta-section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 16px;
}
.aau-cta-section__heading em { color: var(--brand-accent); font-style: normal; }
.aau-cta-section__sub { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 36px; font-size: 1rem; }

/* CF7 form wrapper */
.aau-contact-form-wrap { max-width: 540px; margin: 0 auto; }
.aau-contact-form-wrap .wpcf7-form { display: grid; gap: 14px; }
.aau-contact-form-wrap .aau-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aau-contact-form-wrap p { margin: 0; }
.aau-contact-form-wrap label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; display: block; margin-bottom: 5px; }
.aau-contact-form-wrap input[type="text"],
.aau-contact-form-wrap input[type="email"],
.aau-contact-form-wrap input[type="tel"],
.aau-contact-form-wrap select,
.aau-contact-form-wrap textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--brand-white);
  padding: 12px 16px;
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color var(--transition); width: 100%;
}
.aau-contact-form-wrap input::placeholder,
.aau-contact-form-wrap textarea::placeholder { color: rgba(255,255,255,0.35); }
.aau-contact-form-wrap input:focus,
.aau-contact-form-wrap textarea:focus,
.aau-contact-form-wrap select:focus { border-color: var(--brand-accent); }
.aau-contact-form-wrap select option { background: var(--brand-dark); color: var(--brand-white); }
.aau-contact-form-wrap textarea { resize: vertical; min-height: 110px; }
.aau-contact-form-wrap input[type="submit"],
.aau-contact-form-wrap .wpcf7-submit {
  width: 100%; padding: 15px;
  background: var(--brand-accent); color: var(--brand-dark);
  border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition); letter-spacing: 0.02em;
}
.aau-contact-form-wrap input[type="submit"]:hover,
.aau-contact-form-wrap .wpcf7-submit:hover { background: #d4b45a; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,168,76,0.4); }
.wpcf7-not-valid-tip { color: #fca5a5; font-size: 0.78rem; margin-top: 4px; }
.wpcf7-response-output { color: var(--brand-accent); font-size: 0.88rem; margin-top: 12px; border: none !important; padding: 0 !important; }

/* Direct contact links */
.aau-contact-links {
  margin-top: 32px; display: flex; gap: 24px;
  justify-content: center; flex-wrap: wrap;
}
.aau-contact-links a {
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
  transition: color var(--transition);
}
.aau-contact-links a:hover { color: var(--brand-accent); }

/* =============================================
   FOOTER
   ============================================= */
.aau-footer { background: var(--brand-dark); color: rgba(255,255,255,0.55); padding: 36px 0 24px; }
.aau-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.aau-footer__logo { display: flex; align-items: center; gap: 10px; }
.aau-footer__logo img { height: 32px; width: auto; }
.aau-footer__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--brand-white); }
.aau-footer__name span { color: var(--brand-accent); }
.aau-footer__links { display: flex; gap: 24px; }
.aau-footer__links a { font-size: 0.85rem; transition: color var(--transition); }
.aau-footer__links a:hover { color: var(--brand-accent); }
.aau-footer__copy { font-size: 0.78rem; width: 100%; text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.aau-footer__copy a { color: var(--brand-accent); }

/* =============================================
   WP ADMIN BAR OFFSET
   ============================================= */
.admin-bar .aau-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .aau-nav { top: 46px; } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .aau-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .aau-section { padding: 56px 0; }
  .aau-intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .aau-services__grid { grid-template-columns: 1fr; }
  .aau-features__grid { grid-template-columns: 1fr; }
  .aau-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .aau-testimonials__grid { grid-template-columns: 1fr; }
  .aau-contact-form-wrap .aau-form-row { grid-template-columns: 1fr; }
  .aau-footer__inner { flex-direction: column; text-align: center; }
  .aau-hero__actions { flex-direction: column; align-items: flex-start; }
  .aau-trust__inner { gap: 20px; }
  .aau-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .aau-gallery__grid { grid-template-columns: 1fr; }
  .aau-stats-grid { grid-template-columns: 1fr; }
}
