/*──────────────────────────────────────────────────────────
  VARIABLES & RESET
──────────────────────────────────────────────────────────*/
:root {
  --ff-serif:      'Playfair Display', serif;
  --ff-sans:       'Inter', sans-serif;
  --color-bg:      #fafafa;
  --color-fg:      #222;
  --color-accent:  #0077cc;
  --sp:            1rem;
  --radius:        4px;
  --shadow:        0 2px 8px rgba(0,0,0,0.05);
}

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

body {
  font-family: var(--ff-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.5;
  scroll-behavior: smooth;
}

/*──────────────────────────────────────────────────────────
  HEADER & NAV
──────────────────────────────────────────────────────────*/
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}


/* Logo + tagline inline */
.logo {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.logo h1 {
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  margin: 0;
}

.logo h1 a {
color:var(--color-fg);
text-decoration: none;
}


.logo h1 a:hover {
color: var(--color-accent);
border-bottom-color: var(--color-accent);
}

.logo h1 a:hover::after{
 transform: scaleX(1);
}

.logo .tagline {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Centered nav (takes available space) */
.site-nav {
  flex: 1;
  text-align: center;
}
.site-nav ul {
  display: inline-flex;
  gap: 1.5rem;
  list-style: none;
}
.site-nav a {
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0;
}

/* Underline hover */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Social icons on the right */
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  color: var(--color-fg);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}
.social-icons a:hover {
  color: var(--color-accent);
}

/* Responsive fallback */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
  .site-nav {
    flex: none;
  }
}

/*──────────────────────────────────────────────────────────
  HERO
──────────────────────────────────────────────────────────*/
.hero {
  padding: calc(var(--sp) * 4) var(--sp);
  text-align: left;
}

.hero h2 {
  font-family: var(--ff-serif);
  font-size: 4.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: var(--sp);
}

/*──────────────────────────────────────────────────────────
  REPRESENTATION & PARTNERS (2–column)
──────────────────────────────────────────────────────────*/
.rep-container {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: calc(var(--sp) * 2);
  padding: calc(var(--sp) * 2);
}

.rep-left .rep-block,
.rep-right .rep-block {
  margin-bottom: calc(var(--sp) * 2);
}

.rep-left h2,
.rep-right h2 {
  font-family: var(--ff-serif);
  margin-bottom: 0.5rem;
}

.rep-left ul {
  list-style: none;
  color: #555;
  padding-left: 0;
}

.rep-left li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.clients-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
}

.clients-list li {
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--color-fg);
}

/* Clickable links inside lists */
.rep-left li a,
.clients-list li a {
  color: var(--color-fg);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-bottom 0.2s ease;
}

.rep-left li a:hover,
.clients-list li a:hover {
  border-bottom-color: var(--color-accent);
}

/*──────────────────────────────────────────────────────────
   PORTFOLIO GRID (4 columns)
 ──────────────────────────────────────────────────────────*/
 .portfolio {
   /* match the 2× spacing you used elsewhere */
   padding: calc(var(--sp) * 2) calc(var(--sp) * 2);
 }

.portfolio h2 {
  font-family: var(--ff-serif);
  font-size: 2rem;
  margin-bottom: calc(var(--sp) * 1.5);
}

.grid-4 {
  display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: calc(var(--sp) * 1.5);
   /* remove internal padding so the grid edges hit the section padding exactly */
   padding: 0;
 }



.portfolio-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-item .info {
  padding: var(--sp);
}

.portfolio-item h3 {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.portfolio-item p {
  font-size: 0.875rem;
  color: #555;
}

/*──────────────────────────────────────────────────────────
  FOOTER
──────────────────────────────────────────────────────────*/
/* Footer basic layout */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--sp) * 2) calc(var(--sp) * 2);
  border-top: 1px solid #ddd;
  background: #fff;
  font-size: 0.875rem;
  color: #777;
}

/* Footer utility links */
.footer-right.footer-links a {
  margin-left: 1rem;
  color: var(--color-fg);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.footer-right.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.footer-right.footer-links a:hover::after {
  transform: scaleX(1);
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-right.footer-links a {
    margin-left: 0.5rem;
  }
}
/*──────────────────────────────────────────────────────────
  RESPONSIVE
──────────────────────────────────────────────────────────*/
@media (max-width: 800px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
    margin-left: var(--sp);
  }
}

@media (max-width: 500px) {
  .rep-container {
    grid-template-columns: 1fr;
  }
}

/*──────────────────────────────────────────────────────────
  ABOUT + CONTACT TWO-COLUMN LAYOUT
──────────────────────────────────────────────────────────*/
.about-contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: calc(var(--sp));
  padding: calc(var(--sp) * 4) calc(var(--sp));
  color: var(--color-fg);
}

/* Ensure each panel inherits its own styling */
.about,
.contact-form {
  background: transparent; /* panels share container bg */
  padding: 0;
}

/* Collapse to single column on small screens */
@media (max-width: 800px) {
  .about-contact {
    grid-template-columns: 1fr;
  }
}

/*──────────────────────────────────────────────────────────
  ABOUT SECTION
──────────────────────────────────────────────────────────*/
.about {
  padding: calc(var(--sp) * 4) calc(var(--sp));
 //  background: #fff;
  color: var(--color-fg);
}

.about h2 {
  font-family: var(--ff-serif);
  font-size: 2rem;
  margin-bottom: calc(var(--sp) * 1);
}

.about p {
  max-width: 700px;
  margin-bottom: calc(var(--sp) * 1.25);
  line-height: 1.6;
  color: #444;
}

.about a {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.about a:hover {
  border-bottom-color: var(--color-accent);
}

/*──────────────────────────────────────────────────────────
  CONTACT FORM
──────────────────────────────────────────────────────────*/
.contact-section {
  padding: calc(var(--sp)*4) calc(var(--sp));
  background: #fff;
  color: var(--color-fg);
}

.contact h2 {
  font-family: var(--ff-serif);
  font-size: 2rem;
  margin-bottom: calc(var(--sp)*1);
}

.contact-form {
  padding: calc(var(--sp) * 4) calc(var(--sp));
  color: var(--color-fg);
 //  margin-bottom: calc(var(--sp) * 4);
}

.contact-form h2 { /* identical to .contact h2 earlier */
  font-family: var(--ff-serif);
  font-size: 2rem;
  margin-bottom: calc(var(--sp)*1);
}

form {
  max-width: 600px;
  margin-top: var(--sp);
}

label {
  display: block;
  margin-bottom: calc(var(--sp)*1.5);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--ff-sans);
  font-size: 1rem;
  margin-top: 0.25rem;
  box-sizing: border-box;
  margin-bottom: 0;
}

button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
button[type="submit"]:hover {
  background: darken(var(--color-accent), 10%);
}

/* Error & success messages */
.errors {
  margin-bottom: var(--sp);
  padding: var(--sp);
  background: #fdd;
  border: 1px solid #f99;
  border-radius: var(--radius);
  color: #900;
  list-style: none;
}
.success {
  margin-bottom: var(--sp);
  padding: var(--sp);
  background: #dfd;
  border: 1px solid #9f9;
  border-radius: var(--radius);
  color: #090;
}

/* Hide honeypot from users */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/*──────────────────────────────────────────────────────────
  PRIVACY MODAL
──────────────────────────────────────────────────────────*/
.modal {
  display: none;               /* hidden by default */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: calc(var(--sp)*2);
  max-width: 500px;
  width: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  color: var(--color-fg);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

/* Show modal when .open is added */
.modal.open {
  display: flex;
}