@font-face {
    font-family: 'Rosellinda';
    src: url('./fonts/Rosellinda Alyamore.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================
   MEET RIZAL - OFFICIAL WEBSITE
   Design recreation based on Framer
========================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700;800&family=Dancing+Script:wght@500;600&display=swap');

:root {
  --red: #C51F37;
  --white: #FFFFFF;
  --light-grey: #F3F3F2;
  --dark: #333333;
  --grey: #818181;
  --border: #DEDEDE;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   HEADER & NAVIGATION
========================================== */

.header {
  width: 100%;
  background: var(--red);
  position: relative;
  z-index: 100;
  padding: 0 12px;
}

.navbar {
  min-height: 106px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 46px;
}

.nav-links a {
  color: var(--white);
  font-size: 23px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================
   COMMON ELEMENTS
========================================== */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--grey);
  margin-bottom: 28px;
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
  min-height: 790px;
  padding: 85px 4%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 35px;
  background: var(--white);
}

.hero-content {
  padding-right: 15px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 400;
  line-height: 1.13;
  color: var(--red);
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-description {
  font-size: 23px;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 750px;
}

.primary-button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 19px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.primary-button:hover {
  background: #A9182D;
  transform: translateY(-3px);
}

.hero-image {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.hero-image img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 620px;
  object-fit: contain;
  object-position: bottom center;
}

.hero-image-line {
  width: 100%;
  height: 5px;
  background: var(--red);
  margin-top: -2px;
}

/* ==========================================
   ABOUT SECTION
========================================== */

.about {
  background: var(--light-grey);
  padding: 105px 3.5%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 65px;
  align-items: start;
}

.about-heading h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(45px, 4.5vw, 70px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--red);
}

.about-content {
  padding-top: 0;
}

.about-intro {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 18px;
}

.about-description {
  font-size: 19px;
  line-height: 1.6;
  color: var(--grey);
  text-align: justify;
}

.signature {
  font-family: 'Rosellinda', cursive;
  color: var(--red);
  font-size: 53px;
  margin-top: 17px;
}

/* ==========================================
   EXPERTISE SECTION
========================================== */

.expertise {
  background: var(--white);
  padding: 85px 3.5% 110px;
}

.expertise > h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 4.7vw, 72px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--red);
  max-width: 1050px;
  margin-bottom: 60px;
}

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

.service-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  min-height: 430px;
  padding: 48px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.service-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.service-icon svg {
  width: 51px;
  height: 51px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 35px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 18px;
  line-height: 1.25;
}

.service-card > p:not(.service-details) {
  color: var(--grey);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 27px;
}

.service-card .service-details {
  color: var(--grey);
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
}

/* ==========================================
   CONTACT SECTION
========================================== */

.contact {
  background: var(--white);
  padding: 100px 3.5% 80px;
}

.contact h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(46px, 4.8vw, 72px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--red);
  max-width: 1050px;
  margin-bottom: 28px;
}

.contact-description {
  font-size: 23px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 1000px;
  margin-bottom: 43px;
}


/* CONTACT ACTIONS */

.contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 42px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1.5px solid var(--red);
    border-radius: 12px;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}


.contact-button:hover {
    background: #FFF7F8;
}

.contact-button.whatsapp {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.contact-button.whatsapp:hover {
    background: #A9182D;
}

.contact-button.quote-button {
    background: transparent;
    color: var(--red);
}


.quote-link {
  font-size: 20px;
  color: var(--grey);
  font-style: italic;
  margin-top: 48px;
}

.quote-link a {
  color: var(--red);
  font-weight: 500;
}

.quote-link a:hover {
  text-decoration: underline;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  min-height: 90px;
  padding: 25px 3.5%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
}

.footer-tagline {
  letter-spacing: 2px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

  .navbar {
    padding: 0 30px;
  }

  .hero {
    min-height: 650px;
    padding: 65px 4%;
  }

  .hero-image img {
    height: 500px;
  }

  .hero-description {
    font-size: 19px;
  }

  .service-card {
    padding: 38px 28px;
  }

  .service-card h3 {
    font-size: 28px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

  .header {
    padding: 0;
  }

  .navbar {
    min-height: 78px;
    padding: 0 22px;
  }

  .logo {
    font-size: 20px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--red);
    padding: 20px 25px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 19px;
  }

  .hero {
    min-height: auto;
    padding: 65px 25px 35px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 58px);
  }

  .hero-description {
    font-size: 17px;
    line-height: 1.7;
  }

  .hero-image img {
    height: auto;
    max-height: 480px;
    width: 100%;
  }

  .about {
    padding: 75px 25px;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-heading h2 {
    font-size: 48px;
  }

  .about-intro,
  .about-description {
    font-size: 16px;
    text-align: left;
  }

  .signature {
    font-size: 38px;
  }

  .expertise {
    padding: 75px 22px;
  }

  .expertise > h2 {
    font-size: 46px;
    margin-bottom: 38px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    min-height: 0;
    padding: 38px 24px;
  }

  .service-card h3 {
    font-size: 28px;
  }

  .service-card > p:not(.service-details),
  .service-card .service-details {
    font-size: 16px;
  }

  .contact {
    padding: 75px 25px 60px;
  }

  .contact h2 {
    font-size: 47px;
  }

  .contact-description {
    font-size: 17px;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 13px;
  }

  .contact-button {
    width: 100%;
    min-height: 58px;
  }

  .quote-link {
    font-size: 16px;
    line-height: 1.8;
  }

  .footer {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
  }

  .footer-tagline {
    font-size: 11px;
  }
}


/* SOCIAL MEDIA CONNECT */

.social-connect {
    margin-top: 10px;
}


.social-connect hr {
    display: none;
}


.social-connect h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
}

/* SOCIAL MEDIA ICONS */
.social-icons {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.social-icons a {
    width: 41px;
    height: 41px;
    background: #FFF4F4;
    border: 1.5px solid #FFC7C7;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.social-icons img,
.social-icons svg {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.social-icons a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
}

.social-icons a:hover img,
.social-icons a:hover svg {
    filter: brightness(0) invert(1);
}

/* Justify all paragraph text */
p {
    text-align: justify;
    text-justify: inter-word;
}

/* Justify About Section Paragraphs */
.about-intro,
.about-description {
    text-align: justify !important;
    text-justify: inter-word;
}

/* HEADER LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    width: 356px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* MOBILE LOGO */
@media (max-width: 768px) {
    .logo img {
        width: 269px;
        max-height: 60px;
    }
}

/* LOGO POSITION */
.logo {
    transform: translateX(-100px);
}

@media (max-width: 768px) {
    .logo {
        transform: translateX(-45px);
    }
}