/* ============================================================
   Rimyan Real Estate — Company Site
   Brand: Navy #0A2540 | Teal #00C4B4 | White
   Typography: Inter
   ============================================================ */

:root {
  --navy: #0A2540;
  --navy-light: #0f3058;
  --navy-dark: #061a2e;
  --teal: #00C4B4;
  --teal-hover: #00a89a;
  --teal-glow: rgba(0, 196, 180, 0.15);
  --teal-subtle: rgba(0, 196, 180, 0.08);
  --white: #FFFFFF;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(10,37,64,0.08), 0 4px 12px rgba(10,37,64,0.04);
  --shadow-lg: 0 4px 12px rgba(10,37,64,0.1), 0 16px 40px rgba(10,37,64,0.08);
  --shadow-teal: 0 4px 20px rgba(0,196,180,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-hover); }

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,196,180,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-full { width: 100%; }

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(10,37,64,0.7) 0%, rgba(10,37,64,0.85) 100%),
    url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1600&q=80') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--navy-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-tag {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-300);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Sections ---- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--navy);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-title.light { color: var(--white); }

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-intro.light { color: var(--gray-300); }

.section-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-top: 40px;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- About ---- */

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.7;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-columns p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-meta {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem !important;
  margin-top: 24px !important;
}

/* ---- Areas ---- */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.area-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.area-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.area-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.area-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ---- Services ---- */

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  flex: 1;
  margin-bottom: 20px;
}

.service-cta {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
}
.service-cta:hover { color: var(--teal-hover); }

/* ---- Why Me ---- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* ---- Team ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card-open {
  border-style: dashed;
  background: var(--gray-50);
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.team-photo-open {
  background: var(--gray-200);
  color: var(--gray-400);
  font-size: 2.5rem;
  font-weight: 300;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.team-bio a { color: var(--teal); font-weight: 500; }

/* ---- Contact Form Select ---- */

.contact-form select {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-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='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  background-color: rgba(255,255,255,0.1);
}
.contact-form select option {
  background: var(--navy);
  color: var(--white);
}

/* ---- Testimonials ---- */

.testimonial-placeholder {
  text-align: center;
  padding: 48px;
  background: var(--gray-50);
  border-radius: var(--radius);
  max-width: 500px;
  margin: 32px auto 0;
}

.testimonial-placeholder p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-info p {
  color: var(--gray-300);
  margin-bottom: 8px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.contact-link {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 500;
}
.contact-link:hover { color: var(--white); }

.contact-note {
  font-size: 0.9rem;
  color: var(--gray-400) !important;
  margin-top: 16px !important;
}
.contact-note a { color: var(--teal); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-400);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255,255,255,0.1);
}

.contact-form textarea { resize: vertical; }

/* ---- Mobile Sticky CTA ---- */

.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 99;
}

/* ---- Footer ---- */

.footer {
  background: var(--navy-dark);
  padding: 40px 0;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-inner {
  text-align: center;
}

.footer-main p {
  margin-bottom: 4px;
}

.footer-brokerage {
  color: var(--gray-500);
  font-size: 0.8125rem;
  margin-top: 4px;
}

.footer-links {
  margin: 16px 0;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.8125rem;
}
.footer-links a:hover { color: var(--white); }

.footer-eho {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }

  .nav-cta {
    text-align: center;
    display: block;
  }

  .hero h1 { font-size: 2.5rem; }
  .hero-tagline { font-size: 1.05rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }

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

  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; }

  .mobile-sticky { display: block; }
  .footer { padding-bottom: 80px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
