:root {
  --navy: #0A2540;
  --cream: #FAF6EF;
  --light-brown: #D9C7AA;
  --ink: #1A1F2B;
  --accent: #7A5C39;
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans';
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e8e1d6;
}
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 700; }
.brand img { width: 80px; height: 75px; }
#menu { display: flex; gap: 1rem; align-items: center; }
#menu a { text-decoration: none; color: var(--ink); padding: .5rem .75rem; border-radius: 999px; }
#menu a:hover { background: var(--cream); }
.btn-primary { background: var(--navy); color: #fff !important; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; display: inline-block; border: 1px solid var(--navy); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy) !important; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; background: transparent; }
.link { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(10,37,64,.2); }

/* Hamburger */
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (max-width: 860px){
  #menu { display:none; position:absolute; left:0; right:0; top:64px; background:white; padding:1rem; border-bottom:1px solid #eee; flex-direction:column; }
  .hamburger { display:block; }
  .nav { height:64px; }
}
nav.show {
	display: flex !important;
}

/* Hero */
.hero {
  padding: 64px 0 32px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(10,37,64,.08), transparent 60%),
    linear-gradient(0deg, rgba(217,199,170,.25), rgba(217,199,170,.25));
}
.hero .container { padding-right: .5rem; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(28px, 5vw, 48px); }
.hero-cta { display: flex; gap: .75rem; margin: 1rem 0 1.25rem; }
.trust { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; color: #5b5e66; font-size: .95rem; }
.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid #eee;
  box-shadow: 0 20px 40px rgba(10,37,64,.08);
  width: 100%;
  max-width: 740px;
  margin-right: -18px;
}
.photo { background: #eae7e0; border-bottom: 1px solid #eee; min-height: 280px; }
.ph-hero {
  min-height: 540px;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}
.ph-process {
  min-height: 540px;
  background-image: url('assets/port-1.jpg');
  background-size: cover;
  background-position: center;
}
@media (max-width:960px){
  .hero .container { padding-right: 1.25rem; }
  .hero-inner { grid-template-columns: 1fr; gap:1.25rem; }
  .hero-card { order:-1; max-width:100%; margin-right:0; }
  .ph-hero, .ph-process { min-height: 400px; }
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: white; }
.section-title { font-size: clamp(22px, 3vw, 36px); margin-bottom: 1.25rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.card { background: white; border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 24px rgba(10,37,64,.06); padding-bottom: 1rem; }
.card h3 { padding: 1rem 1rem .25rem; }
.card p { padding: 0 1rem .5rem; color: #53575f; }
.card .link { margin-left: 1rem; }
.service-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid #eee; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); display: block; }
@media (max-width:960px){ .cards { grid-template-columns: 1fr; } }

/* Masonry */
.masonry { columns: 3 280px; column-gap: 12px; }
.tile {
  break-inside: avoid;
  background: #ddd;
  border-radius: 14px;
  display: block;
  min-height: 160px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid #eee;
}
.t1{background-image:url('assets/port-1.jpg')}
.t2{background-image:url('assets/port-2.jpg')}
.t3{background-image:url('assets/port-3.jpg')}
.t4{background-image:url('assets/port-4.jpg')}
.t5{background-image:url('assets/port-5.jpg')}
.t6{background-image:url('assets/port-6.jpg')}
.note { color: #62666f; margin-top: .5rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.step { background: white; border: 1px solid #eee; border-radius: var(--radius); padding: 1rem; box-shadow: 0 8px 18px rgba(10,37,64,.05); }
.step span {
  display: inline-grid; width: 36px; height: 36px; border-radius: 999px; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: .5rem;
}
@media (max-width:960px){ .steps { grid-template-columns: 1fr; } }

/* About (home) */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: stretch; }
.about-media {
  border-radius: var(--radius);
  background-image: url('assets/about.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid #eee;
  box-shadow: 0 12px 26px rgba(10,37,64,.07);
  height: 100%;
  min-height: 400px;
}
.ticks { list-style: none; padding: 0; margin: 1rem 0 1rem; display: grid; gap: .4rem; }
.ticks li::before { content: '✓'; margin-right: .5rem; color: var(--accent); }
.about .about-actions { margin-top: 1.25rem; }
@media (max-width:960px){ .about { grid-template-columns: 1fr; } .about-media { min-height: 320px; } }

/* Form */
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .grid .span-2 { grid-column: span 2; }
.field label { display: block; font-size: .9rem; margin-bottom: .25rem; color: #555; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #ddd; border-radius: 12px; padding: .7rem .9rem; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); }
.choice { display: flex; gap: 1rem; align-items: center; }
.choice input { margin-right: .35rem; }


@media (max-width: 768px) {
  .form .grid {
    grid-template-columns: 1fr;
  }
  .form .grid .span-2 {
    grid-column: span 1;
  }
}
.choice {
  display: flex;
  gap: 1.5rem; /* فاصله بین گزینه‌ها */
  align-items: center;
}

.choice label {
  display: flex;
  align-items: center;
  gap: .35rem; /* فاصله بین دکمه رادیو و متن */
  margin-bottom: 0; /* جلوگیری از فاصله اضافی زیر label */
}
.cf-turnstile {
  margin-bottom: 1.5rem; /* فاصله بین Turnstile و دکمه */
}

/* Footer */
.footer { background: var(--navy); color: #e7eaf0; padding: 28px 0; }
.footer a { color: #e7eaf0; text-decoration: none; opacity: .9; }
.footer a:hover { opacity: 1; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: center; }
.foot-brand { display: flex; gap: .75rem; align-items: center; }
.foot-brand img { width: 80px; height: 80px; filter: brightness(0) invert(1); }
.foot-links { display: flex; gap: 1rem; justify-content: center; }
.foot-cta { display: flex; gap: .75rem; flex-direction: column; align-items: flex-end; }
@media (max-width:960px){ .footer-inner { grid-template-columns: 1fr; } .foot-cta { align-items: flex-start; } }

/* ===========================
   ABOUT PAGE (about.html)
   =========================== */
.about.about--page { align-items: start; }   /* keep text + media aligned at top */
.about--page .about-media { display: none; } /* hide the single-image block on this page */
.about--page .about-gallery { align-self: start; }

/* 5-photo gallery: ONE PER ROW (large, aligned with copy) */
.about--page .about-gallery.five {
  display: grid;
  grid-template-columns: 1fr;   /* one image per row on all sizes */
  gap: 14px;
  max-width: none;              /* use full media column width */
}

/* Frame and image behavior (photos fill the frame perfectly) */
.about--page .about-gallery.five figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2,8,23,.06);
  aspect-ratio: 16 / 10;        /* keep your current frame size; change to 4/3 if you want taller */
  background: #f1f5f9;
  position: relative;           /* enable absolute-fit for the image */
}

.about--page .about-gallery.five figure > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  object-fit: cover;            /* 🔑 fills the frame, no gaps */
  object-position: center;      /* centered crop */
}
/* === ABOUT PAGE: show the FULL photo, no cropping === */
.about--page .about-gallery.five figure {
  /* keep your rounded, shadowed frame */
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2,8,23,.06);

  /* IMPORTANT: let the image decide height (no fixed frame ratio) */
  aspect-ratio: auto !important;
  background: #f1f5f9;
  position: relative; /* harmless, but not required */
}

/* Make the image flow normally and scale by width */
.about--page .about-gallery.five figure > img {
  position: static !important;   /* cancel any previous absolute positioning */
  display: block;
  width: 100% !important;        /* span full frame width */
  height: auto !important;       /* keep natural aspect ratio */
  max-width: 100%;
  object-fit: contain !important;/* ensure the entire photo is visible */
  object-position: center;
  border-radius: inherit;        /* keeps rounded corners clean */
}

/* === ABOUT PAGE: add more gaps in the copy to align with photos === */
.about--page .about-copy {
  line-height: 1.9;                 /* roomier line spacing */
}

/* Bigger gaps after each paragraph */
.about--page .about-copy p {
  margin-bottom: 1.75rem;
}

/* Stronger separation before each subsection */
.about--page .about-copy .section-title {
  margin-top: 2.5rem;                /* space above each H2 */
  margin-bottom: .85rem;             /* a little space below */
}

/* Bullet list spacing */
.about--page .about-copy ul.ticks {
  margin-top: .85rem;
  margin-bottom: 2rem;
}
.about--page .about-copy ul.ticks li {
  margin-bottom: .6rem;              /* breathing room between bullets */
}

/* Optional: add a touch more space before the action buttons row */
.about--page .about-copy > div[style*="display:flex"] {
  margin-top: 1.25rem;
}

/* Tweak for mobile so it doesn't feel too airy */
@media (max-width: 960px) {
  .about--page .about-copy { line-height: 1.85; }
  .about--page .about-copy p { margin-bottom: 1.25rem; }
  .about--page .about-copy .section-title { margin-top: 2rem; }
}
/* ===== Portfolio carousel (3-up, large, images fill frames) ===== */
.carousel {
  --gap: 14px;
  position: relative;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .35s ease;
}

/* 3 per view on desktop, 2 on tablets, 1 on phones */
.slide {
  flex: 0 0 calc((100% - 2*var(--gap)) / 3);
}
@media (max-width: 960px) {
  .slide { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 640px) {
  .slide { flex-basis: 100%; }
}

/* Frame + image */
.slide figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 12px 26px rgba(10,37,64,.07);
  aspect-ratio: 3 / 2;          /* nice, larger wide frame */
  background: #f3f4f6;
}
.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;            /* fill the frame perfectly */
  object-position: center;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10,37,64,.15);
  display: grid; place-items: center;
  font-size: 26px; line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}
ul.carousel-track {
    list-style-type: none;
}
.carousel-btn.prev { left: -8px; z-index: 10; }
.carousel-btn.next { right: -8px; }
.carousel-btn[disabled] { opacity: .4; cursor: default; }
/* ===== Portfolio carousel (3-up, large, images fill frames) ===== */
.carousel {
  --gap: 14px;
  position: relative;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .35s ease;
}

/* 3 per view on desktop, 2 on tablets, 1 on phones */
.slide {
  flex: 0 0 calc((100% - 2*var(--gap)) / 3);
}
@media (max-width: 960px) {
  .slide { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 640px) {
  .slide { flex-basis: 100%; }
}

/* Frame + image */
.slide figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 12px 26px rgba(10,37,64,.07);
  aspect-ratio: 3 / 2;          /* nice, larger wide frame */
  background: #f3f4f6;
}
.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;            /* fill the frame perfectly */
  object-position: center;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10,37,64,.15);
  display: grid; place-items: center;
  font-size: 26px; line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-btn[disabled] { opacity: .4; cursor: default; }
/* ---- Consent checkbox alignment fix ---- */
.form .grid .field .choice{
  display: flex !important;     /* beat .field label {display:block} */
  align-items: center;
  gap: .5rem;
  justify-content: flex-start;
  line-height: 1.4;
}

.form .grid .field .choice input[type="checkbox"]{
  margin: 0 .5rem 0 0;          /* little space before the text */
  transform: translateY(1px);   /* optical align with text */
}

/* --- Fix consent checkbox alignment --- */
.form .grid .consent-row{
  /* make it one full-width row and align content left */
  grid-column: 1 / -1;       /* span both columns */
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.form .grid .consent-row input[type="checkbox"]{
  width: auto;               /* undo any global width:100% */
  height: auto;
  margin: 0;
  transform: translateY(1px); /* tiny optical nudge */
}

/* beat the generic ".field label { display:block }" rule */
.form .grid .consent-row label{
  display: inline !important;
  margin: 0;
  line-height: 1.4;
}



html {
  scroll-behavior: smooth;
}

	nav .btn-primary:hover,
	nav .btn-primary:focus,
	nav .btn-primary:active {
	background-color: #fff  !important;
	color:var(--navy) !important;
	border: 1.5px solid var(--navy);
	transform: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	}


.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.service-copy,
.service-fig {
  flex: 1 1 400px;
}

.service-fig img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .service-grid {
    flex-direction: column;
  }
  .section {
    padding: 32px 0;
	}
	.hero-copy h1 {
		font-size: 32px;
	}
	.service-copy, .service-fig {
    flex: none;
}
}

@media (max-width:480px) {
	.btn-row {
		flex-direction: column;
		display: flex;
		text-align: center;
		gap: 10px;
	}
}
.services-hero {
	padding-bottom: 0;
}

nav.show {
	display: flex !important;
}





/* Process Page Styles */
.process-hero {
  padding: 80px 0 40px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(10,37,64,.08), transparent 60%),
    linear-gradient(0deg, rgba(217,199,170,.25), rgba(217,199,170,.25));
}

.ph-process {
  min-height: 540px;
  background-image: url('assets/port-1.jpg');
  background-size: cover;
  background-position: center;
}

.process-details {
  padding: 80px 0;
}

.process-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  color: #53575f;
}

.step {
  position: relative;
  background: white;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 18px rgba(10,37,64,.05);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(10,37,64,.1);
}

.step span {
  display: inline-grid; 
  width: 48px; 
  height: 48px; 
  border-radius: 999px; 
  place-items: center;
  background: var(--navy); 
  color: #fff; 
  font-weight: 700; 
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.step-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #53575f;
  display: none;
}

.step.active .step-details {
  display: block;
}

.step.active span {
  background: var(--accent);
}

.process-benefits {
  margin: 4rem 0;
  text-align: center;
}

.process-benefits h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--navy);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.benefit {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 18px rgba(10,37,64,.05);
  transition: transform 0.3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.benefit h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.process-cta {
  text-align: center;
  padding: 1rem 0;
  background: var(--cream);
  border-radius: var(--radius);
  margin-top: 3rem;
}

.process-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.process-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #53575f;
}

/* Active state for navigation */
nav a.active {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .process-hero {
    padding: 60px 0 30px;
  }
  
  .ph-process {
    min-height: 400px;
  }
  
  .process-details {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .step {
    padding: 1.25rem;
  }
  
  .process-cta {
    padding: 1rem 1rem;
  }
  
  .process-cta h2 {
    font-size: 1.6rem;
  }
}

.process-cta {
  text-align: center;
  margin-top: 2rem;
}




/* contact form */
/* Form Validation Styles */
.field {
  position: relative;
  margin-bottom: 1rem;
}

.error-message {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: #d32f2f;
  background-color: #fff8f8;
}

.field.error .error-message {
  display: block;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(10,37,64,.3);
  animation: slideIn 0.3s;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: var(--navy);
}

.modal-close {
  margin-top: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Form Status Styles */
.form-status {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}

.form-status.success {
  color: #2e7d32;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  display: block;
}

.form-status.error {
  color: #c62828;
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  display: block;
}