/* ==========================================================================
   A1 Home Developments — Styles
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --navy: #0F1B2D;
  --navy-light: #1A2A42;
  --charcoal: #1E1E2E;
  --accent: #D4A843;
  --accent-hover: #C49A35;
  --accent-light: rgba(212, 168, 67, 0.12);
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --grey-50: #F9FAFB;
  --grey-100: #F3F4F6;
  --grey-200: #E5E7EB;
  --grey-300: #D1D5DB;
  --grey-400: #9CA3AF;
  --grey-500: #6B7280;
  --grey-600: #4B5563;
  --grey-700: #374151;
  --grey-800: #1F2937;

  --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-600);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 800;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--large { padding: 16px 36px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--nav {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  padding: 10px 24px;
  font-size: 0.85rem;
}
.btn--nav:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar--scrolled {
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  height: 160px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar--scrolled .navbar__logo { height: 120px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--accent); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__toggle--active span:nth-child(2) { opacity: 0; }
.navbar__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,27,45,0.92) 0%, rgba(15,27,45,0.7) 50%, rgba(15,27,45,0.85) 100%);
}

.hero__inner { position: relative; z-index: 1; padding: 120px 0 80px; }

.hero__content { max-width: 680px; }

.hero__badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(212,168,67,0.25);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.8;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Stats Bar --- */
.stats {
  background: var(--navy-light);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* --- Sections --- */
.section { padding: 100px 0; }

.section__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section__title--left { text-align: left; }

.section__subtitle {
  text-align: center;
  color: var(--grey-500);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Services --- */
.services { background: var(--off-white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid var(--grey-200);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--grey-500);
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery__item--wide { grid-column: span 2; }

.gallery__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery__item--wide .gallery__image { aspect-ratio: 2/1; }

.gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover .gallery__image img { transform: scale(1.05); }

.gallery__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(15,27,45,0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.gallery__item:hover .gallery__overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery__overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.gallery__overlay p {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Why Us --- */
.why-us { background: var(--off-white); }

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-us__content p {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.why-us__content .section__label { text-align: left; }

.why-us__list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.why-us__list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 500;
  color: var(--grey-700);
}
.why-us__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
}
.why-us__list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.why-us__placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.why-us__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Testimonials --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--grey-200);
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey-600);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card footer strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}
.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--grey-400);
}

/* --- About --- */
.about { background: var(--off-white); }

.about__inner { max-width: 720px; }

.about__content .section__label { text-align: left; }

.about__content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.about__certs {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cert-badge {
  background: var(--accent-light);
  color: var(--accent-hover);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(212,168,67,0.2);
}

/* --- Contact --- */
.contact { background: var(--navy); }

.contact .section__label { text-align: left; color: var(--accent); }
.contact .section__title { text-align: left; color: var(--white); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact__details { display: flex; flex-direction: column; gap: 20px; }

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__detail svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__detail strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.contact__detail a,
.contact__detail span {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.contact__detail a:hover { color: var(--accent); }

/* --- Contact Form --- */
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--grey-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--grey-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea { resize: vertical; min-height: 120px; }

.contact__privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey-400);
  margin-top: 14px;
}

.contact__success {
  text-align: center;
  padding: 40px 20px;
}
.contact__success h3 {
  font-size: 1.3rem;
  margin: 16px 0 8px;
}
.contact__success p {
  color: var(--grey-500);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  height: 144px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__nav h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__nav a,
.footer__nav span {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--accent); }

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer__powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__powered-by span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.footer__roshi-logo {
  height: 72px;
  width: auto;
  opacity: 0.4;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .why-us__inner { grid-template-columns: 1fr; gap: 40px; }
  .why-us__placeholder { aspect-ratio: 16/9; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .navbar__toggle { display: flex; }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
  }
  .navbar__links--open { right: 0; }

  .hero { min-height: 90vh; }
  .hero h1 { font-size: 2rem; }
  .hero__description { font-size: 1rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .services__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .section__title { font-size: 1.6rem; }

  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat__number { font-size: 1.5rem; }
}
