/* ===================================
   ARYANA DESIGN CO. — Global Styles
   Color Palette: White, Cream, Sand, Terra Cotta, Olive
   =================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --white: #FFFFFF;
  --cream: #FAF7F2;
  --sand: #D6C6A5;
  --sand-light: #E8DFD0;
  --dune: #C4AE82;
  --terra-cotta: #C17C60;
  --terra-cotta-light: #D4A08C;
  --olive: #7A8B6F;
  --olive-light: #9EAB94;
  --olive-dark: #5C6B52;
  --charcoal: #2C2C2C;
  --charcoal-light: #4A4A4A;
  --text-primary: #2C2C2C;
  --text-secondary: #6B6B6B;
  --text-light: #9A9A9A;
  --border: #E5E0D8;

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --section-padding-sm: 80px 0;
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.subheading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terra-cotta);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding);
}

.section--cream {
  background-color: var(--cream);
}

.section--sand {
  background-color: var(--sand-light);
}

.section--olive {
  background-color: var(--olive);
  color: var(--white);
}

.section--olive p {
  color: rgba(255, 255, 255, 0.85);
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 16px 40px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--filled {
  background: var(--charcoal);
  color: var(--white);
}

.btn--filled:hover {
  background: var(--charcoal-light);
  border-color: var(--charcoal-light);
}

.btn--terra {
  border-color: var(--terra-cotta);
  color: var(--terra-cotta);
}

.btn--terra:hover {
  background: var(--terra-cotta);
  color: var(--white);
}

.btn--white {
  border-color: var(--white);
  color: var(--white);
}

.btn--white:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__logo-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.header__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-top: 4px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terra-cotta);
  transition: var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--terra-cotta);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -4px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--medium {
  height: 70vh;
  min-height: 450px;
}

.hero--small {
  height: 50vh;
  min-height: 350px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 44, 44, 0.35);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 40px;
  max-width: 800px;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.hero__tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* --- Image Grid --- */
.image-grid {
  display: grid;
  gap: 20px;
}

.image-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid__item {
  overflow: hidden;
  position: relative;
}

.image-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.image-grid__item:hover img {
  transform: scale(1.05);
}

.image-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: var(--white);
}

.image-grid__caption h3 {
  font-size: 1.3rem;
  color: var(--white);
}

.image-grid__caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--terra-cotta);
  margin: 30px auto;
}

.divider--left {
  margin-left: 0;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col__image {
  overflow: hidden;
}

.two-col__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* --- Services Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.service-card {
  text-align: center;
  padding: 40px 20px;
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--terra-cotta);
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.9rem;
}

/* --- Testimonial --- */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.testimonial__author {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  background: #4A4A4A;
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 25px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer__brand .footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 20px;
}

.footer__logo-img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__logo-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
}

.footer__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 4px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 0.7rem;
}

.footer__links a {
  display: block;
  padding: 5px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5em;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.footer__social a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--terra-cotta);
}

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

/* --- Form Messages --- */
.form-message {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-message--success {
  background: #f0f7f0;
  color: var(--olive-dark);
  border: 1px solid var(--olive-light);
}
.form-message--error {
  background: #fdf2f0;
  color: #8B3A2A;
  border: 1px solid var(--terra-cotta-light);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  counter-increment: step;
}

.process-step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--sand);
  margin-bottom: 15px;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.85rem;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 44, 44, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__overlay {
  background: rgba(44, 44, 44, 0.4);
}

.portfolio-card__info {
  text-align: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__info {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card__info h3 {
  color: var(--white);
  margin-bottom: 5px;
}

.portfolio-card__info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin: 0;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col {
    gap: 50px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .container {
    padding: 0 25px;
  }

  .header__inner {
    padding: 15px 25px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .two-col__image img {
    height: 350px;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .portfolio-card img {
    height: 350px;
  }

  .image-grid--2,
  .image-grid--3 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 500px;
  }

  .hero--medium {
    min-height: 350px;
    height: 50vh;
  }

  .hero--small {
    min-height: 280px;
    height: 40vh;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header__logo img {
    height: 22px;
  }

  .btn {
    padding: 14px 30px;
    font-size: 0.65rem;
  }
}
